musical-artifacts icon indicating copy to clipboard operation
musical-artifacts copied to clipboard

Database migration fails

Open natehouk opened this issue 2 years ago • 1 comments

I can't get the database bootstrapped. Everytime I run it I get this error:

root@localhost:/opt/src/musical-artifacts# docker exec -it musical-artifacts_web_1 bundle exec rake db:create
musical_artifacts_development already exists
root@localhost:/opt/src/musical-artifacts# docker exec -it musical-artifacts_web_1 bundle exec rake db:migrate
== 20150330064125 DeviseCreateUsers: migrating ================================
-- create_table(:users)
   -> 0.0194s
-- add_index(:users, :email, {:unique=>true})
   -> 0.0077s
-- add_index(:users, :reset_password_token, {:unique=>true})
   -> 0.0060s
== 20150330064125 DeviseCreateUsers: migrated (0.0342s) =======================

rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

undefined method `username' for #<User:0x000055647f78fd78>
bundler: failed to load command: rake (/usr/local/bundle/bin/rake)
NoMethodError: undefined method `reject' for nil:NilClass

Any ideas?

natehouk avatar Jan 09 '23 17:01 natehouk