StandardError: An error has occurred, this and all later migrations canceled:
PG::DuplicateTable: ERROR: relation "table_names" already exists : CREATE TABLE "table_names" ("id" serial primary key, "name" character varying, "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
This error show when you try to migrate a while the table is already existing.
This error is a result of deleting migration files instead of using the the rails rollback.
Delete the table using your console
your_app_development=# drop table table_name; DROP TABLE