ga-wdi-exercises / project2

[project]
1 stars 30 forks source link

devise error #889

Closed Fitssum closed 7 years ago

Fitssum commented 7 years ago

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.

superbuggy commented 7 years ago

What were the actions that triggered this error?

Fitssum commented 7 years ago

rails db:migrate (after I finished with rails g devise User)

superbuggy commented 7 years ago

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.

Fitssum commented 7 years ago

It's working! thanks!!