New Comment

The Seed Controversy (0 comments)

Published 10th April 2016 at 07:39pm UTC

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 so as to avoid this issue. This is however,

[Read more...]

Anonymous(Log InSign Up)