阅读背景:

从数据库中已有的数据创建种子文件

来源:互联网 

I'm using Rails 3.0.3 and have data for my "categories" table already in the database, but want to create a seed file from it. Is there any rake task that will generate the seeds.rb format for me from this table?I'm using Rails 3.0.3 and have data for my "cat




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

分享到: