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

Database migration fails #72

Open
natehouk opened this issue Jan 9, 2023 · 1 comment
Open

Database migration fails #72

natehouk opened this issue Jan 9, 2023 · 1 comment

Comments

@natehouk
Copy link

natehouk commented Jan 9, 2023

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?

@lfzawacki
Copy link
Owner

I'll look into it shortly, sorry for the delay on answering!

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