Make mention about interoperability with vanilla db:seed #26

Open
haxney opened this Issue Oct 5, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@haxney

haxney commented Oct 5, 2011

I learned the fun way (i.e. wasting an hour) figuring out that rake db:seed fails if db/seeds.rb doesn't exist. So if you're using seed_fu, you need to make sure you don't delete the original db/seeds.rb.

I also wanted to be able to have seed_fu run from a rake db:reset which wasn't happening by default. However, this can be enabled simply by adding

SeedFu.seed

to your db/seeds.rb. This causes rake db:seed to call through to seed_fu, allowing everything to play nice.

@nickpellant

This comment has been minimized.

Show comment
Hide comment
@nickpellant

nickpellant Jan 19, 2012

+1 On this, I didn't realise this either.

+1 On this, I didn't realise this either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment