Hi community,
Recently, I’ve got a problem with our setup of ForestAdmin.
When trying to edit anything on some kind of model, I’ve got an error:
Model XXX update failed: ERROR: relation “SuperClass” does not exist LINE 8: WHERE a.attrelid = ‘“super_class”’::regclass ^
I’ve checked all my logs, and it seems that the errors comes directly when Forest tries to communicate with our database.
Could you help me?
Expected behavior
I should be able to update any column on model XXX
Actual behavior
Whatever data I try to change on model XXX, I got the following error:
Model XXX update failed: ERROR: relation “SuperClass” does not exist LINE 8: WHERE a.attrelid = ‘“super_class”’::regclass ^
Failure Logs
I believe that the problem comes from the fact that in my Ruby application, I’ve got the following kind of structure:
class XXX < ApplicationRecord end
class SuperClass < ApplicationRecord end
class SubClass < SuperClass end
Where xxx and sub_classes exist as tables in the database, but super_classes_not. It’s just a parent class with some common behavior.
Context
Please provide any relevant information about your setup.
- Package Version: Forest-liana 4.2.0
- Express Version:
- Sequelize Version:
- Database Dialect: Postgres
- Database Version: 12
- Project Name: