Skip to content

Database migration fails #72

@natehouk

Description

@natehouk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions