Getting a PG::DuplicateTable: ERROR and can't figure out trying what is wrong.
Running via Spring preloader in process 6376
== 20170814192757 CreateRestaurants: migrating
================================
-- create_table(:restaurants)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::DuplicateTable: ERROR: relation "restaurants" already 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 the database and recreating it with the following.
rake db:drop db:create db:migrate