Seeds does not update when migration is explicitly set.
vanev opened this issue · comments
When running rake seed:migrate MIGRATION=<MIGRATION_NAME>
, the db/seeds.rb
file is not updated.
When running rake seed:migrate
, everything goes great.
Just checked the code, we only create the seeds file after calling .run_new_migrations.
I think the best solution will be to call Migrator.create_seed_file
from the rake task, therefore, whether you run new migrations or an explicit one, you'll update the seed file.