seedbank
seedbank copied to clipboard
Force common/setup to run before any individual seed
The example rake db:seed:development:users
seems to actually only run db/seeds/development/users.seeds.rb
. Is there any way to force some common/shared code to load beforehand without having to do after
or require
in every single individual seed file?
There currently isn’t. It wouldn’t be hard fo add a global.seeds.rb dependency and I’d happily accept a PR for it.
On 21 Mar 2018, 08:45 +0700, Stefan Wrobel [email protected], wrote:
The example rake db:seed:development:users seems to actually only run db/seeds/development/users.seeds.rb. Is there any way to force some common/shared code to load beforehand without having to do after or require in every single individual seed file? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.