在登录数据源时,要搞清数据源名(Datasourcename)、数据库文件名(Databasename)和数据表格名(Tablename)这三者的概念和相互关系:数据源实际是一种数据连接的抽象,数据源名是登录时赋予的“连接”的名称,以供给用程序使用,至于该数据源...
基于26个网页-相关网页
右键点击表格名,并编辑列,这样它就会使用所有的列了。
Right-click the table name, and modify the column list so that it uses all of the columns.
在弹出的对话框中,给新的表格名命(我的是“Books”),然后添加列信息。
B. In the resulting dialog, give your table a name (mine is "Books"), and add the column information. I chose.
如果你的表格名与ActiveRecord命名规则不一致,你需要用set _ table_name强制把它加到模型类的定义中。
If your table name is not compatible with ActiveRecord naming conventions, then you need to explicitly map it using set_table_name inside your model class definition.
应用推荐