Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top