We need to add more seed data for some newly added tables to "version 100" of our rails project.
However, if we simply add it to the 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've already added seed data to seeds.rb for, say, TableOne ... how can we incrementally add seed data for TableTwo and TableThree at later stages of development?
I'd hoped I could simply create a NEW seeds_two.rb file and run rake db:seeds_two
but that gave an error Don't know how to build task 'db:seeds_two'
So it looks like ONLY "seeds.rb" can be used - so how DO people maintain incremental additions to seed data?
rake db:reset
to avoid duplications? – Vasiliy Ermolovich Aug 20 '11 at 7:22