Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Better warning when you used the incorrect class name in a seed file #40

Open
gaffo opened this Issue · 1 comment

1 participant

@gaffo

If you have a User class and accidentally put the wrong name in the seed, for instance:

Users.seed

rake db:seed_fu outputs

uninitialized constant SeedFu::Runner::Users

Really it should output:

Unknown class Users, Make sure you use the model class name you are trying to seed.

Or maybe if it's plural, you could singularize it:

You are trying to seed with the plural class Users, and you have a User model, please use User in the seed file
@gaffo

I'll likely add this if I get enough use out of the gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.