Monday, 26 August 2013

how do i target a seeds.rb in an engine to avoid seeding my entire app?

how do i target a seeds.rb in an engine to avoid seeding my entire app?

My project is on Rails 3.2 and refinerycms v 2.0.10
I just generated a new engine and and ran my bundle and rails generate
commands, and my migration. Now, per the docs, I need to run db:seed but I
don't want to execute a db:seed at the app level because I have several
other engines and I don't want to re-seed them.
it is related to this question: Rails engine / How to use seed? but the
answer there is to run db:seed at the app level.
So how would I say something like rake myNewEngine:db:seed ? I know it can
be done but my google fu is apparently too weak to dredge it up.

No comments:

Post a Comment