InvalidSchemaName after recreating public schema.

August 2, 2015 1.3k views

I drop the public schema, recreating with the same name, and when I run rake db: migrate, gives the following error.

ActiveRecord::StatementInvalid: PG::InvalidSchemaName: ERROR: no schema has been selected to create in
: CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)

Be the first one to answer this question.