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
Post a Comment