We need to add more seed data for some of the added tables to the "version 100" of our rails project.
However, if we simply add it to seeds.rb and re-run the rake db: seed command, it will, of course, RE-add the original seed data, duplicating it.
So, if you have already added seed data to the seeds.rb file, say, TableOne ... how can we gradually add seed data for TableTwo and TableThree at later stages of development?
I was hoping I could just create the NEW seed_two.rb file and run rake db:seeds_two, but that gave an errorDon't know how to build task 'db:seeds_two'
So, it looks like you can use ONLY "seeds.rb" - so how do people support incremental additions to the source data?
source
share