Vote count:
0
When I run:
rake db:drop
rake db:create db:migrate
rake db:seed
my migration works fine and seeds correctly. When I run
rake db:rebuild
I get an undefined method exception thrown when the seed starts:
NoMethodError: undefined method `find_or_create_by' for #<ActiveRecord::Migration:0x000000039faa80>
Rails 4.2.0 & Ruby 2.1.5
asked 1 min ago
rake db:rebuild throwing exception while rake db:drop does not
Aucun commentaire:
Enregistrer un commentaire