The Seed Controversy (0 comments)

In the Rails community there is some controversy over where to put seed data. Best practice advises that these are placed in the db/seeds.rb file within a Rails application, which is great if all you want to do is run rake db:seed once throughout the entire life of your application or are ok with deleting everything in your database should you ever have to run the rake db:seed command again.

So far, so terrible.

Many Rubyists have opted to place seed data in their migration files ...

[Read more...]