Closed Fitssum closed 7 years ago
What were the actions that triggered this error?
rails db:migrate (after I finished with rails g devise User)
I just cloned down your repo and successfully ran your migrations.
what happens when you run rails db:drop db:create db:migrate
?
rails db:drop
will delete your data.
It's working! thanks!!
I tried to generate devise for users. Migration aborted instead. Detail of error message: PG::UniqueViolation: ERROR: could not create unique index "index_users_on_email" DETAIL: Key (email)=() is duplicated. : CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
My repo link is https://github.com/Fitssum/project-02.