cbeer / engine_cart

Rake tasks to generate test applications for Rails Engines
MIT License
18 stars 16 forks source link

No hook for db:seed #51

Closed atz closed 8 years ago

atz commented 8 years ago

We can copy migrations during the callback to MyApp::InstallGenerator, but we don't have a hook to make use of db:seed to populate the schema with initial values. We cannot run them in the InstallGenerator because without running db:migrate first, which is already otherwise being called by EngineCart after the generator.

What's the best move? Call migrate explicitly and end up calling migrate twice?

cbeer commented 8 years ago

Running db:migrate twice sounds like a fine workaround.