I have used the seed file to generate data that needs to go into the DB, but now I need to generate some countries, provinces and cities into three different tables and I haven't been able to find a good way to put that into the seed.

However I have found a sql file that has all that information and that I should dump into the DB. My question is:

Where should I store that in my Rails folder as a convention?

Thanks

有帮助吗?

解决方案

I would create a directory at db/seeds, and place that seed file, and any others you may have in there.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top