rails/rails — pull request #5284 by whilefalse (2012-03-05 16:22:14+00:00)
Title: Added a rake task railties:seed and corresponding engine_name:seed task,...

... similar to railties:install:migrations.

The use case here is we have a contacts engine, which provides all the CRM related stuff shared across applications.

Certain seed data like countries needs to be provided by these engines. We can provide migrations no problem, but at the moment we are just having to run "ruby /path/to/engine/db/seeds.rb"to load the seeds.

This adds a rake task "rake engine_name:seed" (similar to "rake engine_name:install:migrations"), to run seeds from any engine, and a corresponding "rake railties:seed", which uses the FROM environment variable to choose which railties to run seeds from.

Would it be ok to backport this to 3.1 and 3.2 aswell? Let me know and I will send pull requests for those.