ruby on rails - Getting a PG::DuplicateTable: ERROR -


getting pg::duplicatetable: error , can't figure out trying wrong.

running via spring preloader in process 6376 == 20170814192757 createrestaurants: migrating  ================================ -- create_table(:restaurants) rake aborted!  standarderror: error has occurred, , later migrations canceled:  pg::duplicatetable: error:  relation "restaurants" exists : create table "restaurants" ("id" serial primary key, "name" character  varying, "rating" integer, "created_at" timestamp not null, "updated_at"  timestamp not null) 

tried dropping database , recreating following.

rake db:drop db:create db:migrate 


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -