Error trying to load structure with rake db: structure: load, "schema_migration" does not exist

I run rake db:structure:load, but after loading the whole structure, it cannot embed versions in schema_migrations.

PostgreSQL seems to be unaware of newly created tables. Already googled around, but did not find anything useful.

+5
source share
1 answer

Have you changed or deleted any migrations?

Anyway. You can look into the postgres console and try:

to get a list of all the databases (to find yours)

\list

thereafter

\c yourdatabasename_yourenvironment

and

\dt

to see all the tables in the postgres database.

0
source

All Articles