PG::UndefinedTable: ERROR: relation “active_storage_blobs” does not exist

The active_storage_blobs table does not exist yet. You need to first run:

rails active_storage:install

This command will add 2 migrations for 2 tables: active_storage_attachments and active_storage_blobs.

These new migrations need to be run before the migrations you have above. There is a trick for this, you can consider manually changing the timestamp in the filenames of the 2 migrations you have above to one higher than the 2 new migrations active_storage:install will create.

Once all of this is sorted, run rake db:migrate

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)