阅读背景:

Ruby on Rails数据库:如何通过更改app / model / table.rb文件如何知道它们已实现来提及外键关系

来源:互联网 

I am new to RoR. I used "rails generate model ServiceConfigs" command to generate a table. so may commands are as below rails generate model ServiceConfigs configs:string rake db:migrate -- can see app/db/service_config.rb created. Now edited service_config.rb file to add 2 columns and which has a foreign key relation to service table. So here is code I am new to RoR. I used "rails generate model S




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: