PG::UndefinedTable - ERROR: relation "active_storage_attachments" does not exist

KH_

I just created a simple application for products and shopping cart with names, price and attachments. It's working fine without any issues. I decided to create admin and authentication using rails-admin gem and devise respectively.

I have followed the instructions as explained here. It all worked fine until I got to the rails_admin part. I did everything as described except using rails_admin 1.3 version as described on the github page. I also tried the older version on the link but I encounter this error each time

PG::UndefinedTable - ERROR:  relation "active_storage_attachments" does    not exist
 LINE 8:                WHERE a.attrelid = '"active_storage_attachmen...

I do not have any table by the name 'active_storage_attachments'. I found active_storage on the config file so I'm guessing this might be something caused by Rails configuration. Any assistance will be appreciated. If there is need to show some code from my app, I'll do that, although it's quite a huge code already.

Thanks in advance.

John Doe

Did you run rails active_storage:install as described on this page? I believe this error might be due to your product attachments and the configuration which you mentioned.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

PG::UndefinedTable: ERROR: relation "..." does not exist

PG::UndefinedTable: ERROR: relation 'caves' does not exist

PG::UndefinedTable: ERROR: relation "entries" does not exist

Installing Devise: `PG::UndefinedTable: ERROR: relation "users" does not exist`

ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "guestbooks" does not exist

PG::UndefinedTable: ERROR: relation "step_images" does not exist

Rails - PG::UndefinedTable: ERROR: relation "customers" does not exist

PG::UndefinedTable: ERROR: relation "active_storage_blobs" does not exist

rake aborted! PG::UndefinedTable: ERROR: relation "pages" does not exist

ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation table does not exist)

heroku postgresql database rails app PG::UndefinedTable: ERROR: relation "comments" does not exist

Rails join table name doesn't match migration or schema (PG::UndefinedTable: ERROR: relation does not exist)

ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "spree_orders" does not exist

PG::UndefinedTable: ERROR: relation "" does not exist - Amazon EC2, Postgresql, and Rails 5

PG::UndefinedTable: ERROR: relation "action_text_rich_texts" does not exist | Rails 6 | Rails_Admin | Postgresql

PG::UndefinedTable: ERROR: table "table-name" does not exist

Rails ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "pg_range" does not exist LINE 3: LEFT JOIN pg_range as r ON oid = rngtypid

ActiveStorage issue to set record_type on active_storage_attachments

pg_restore ERROR: “Relation does not exist” and creating new database

psycopg2.errors.UndefinedTable: relation does not exist (join table)

i18n-active_record PG::Error: ERROR: relation "translations" does not exist (rails 4)

Pg:Error column does not exist

PG::UndefinedColumn: ERROR: column "city_id" of relation "events" does not exist

Relation does not exist error using WITH

JPA ERROR: relation does not exist

psycopg2.errors.UndefinedTable: relation “exercises” does not exist - Django Testing

psycopg2.errors.UndefinedTable: relation "authentication_author" does not exist: Django v4

PostgreSQL Error "ERROR: relation "user" does not exist"

Heroku database error on production: PG::UndefinedTable Error