Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError when running rake db:seed:dump #112

Open
ldanielw1 opened this issue Aug 22, 2016 · 3 comments
Open

NoMethodError when running rake db:seed:dump #112

ldanielw1 opened this issue Aug 22, 2016 · 3 comments

Comments

@ldanielw1
Copy link

When running rake db:seed:dump, I see this error:
NoMethodError: undefined methodexists?' for #Array:0x007fb2754070e8`

I traced the error, and it's because when env is empty, lib/seed_dump/environment.rb points to ActiveRecord::Base.descendants as models, and those don't have a .exists? method... is there something about this error that I'm missing?

@SylarRuby
Copy link

@ldanielw1 I'm only watching this gem so I have not installed this gem as yet. Based on the error, I feel it's a bug as Arrays in Ruby don't have exists? method, instead Arrays uses includes?. Or.. have you changed anything? Try using a new rails app and see if your code is causing some conflict.

@ldanielw1
Copy link
Author

I haven't changed anything in the gem, it was a clean install.

@SylarRuby
Copy link

Then I smell bug. I'll try this later and see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants