seed_dump
seed_dump copied to clipboard
NoMethodError when running rake db:seed:dump
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?
@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.
I haven't changed anything in the gem, it was a clean install.
Then I smell bug. I'll try this later and see.