ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "categories" does not exist
LINE 1: SELECT "categories"."id" FROM "categories" WHERE "categories...
^
)
lib/freedom_patches/fast_pluck.rb:41:in `select_raw'
lib/freedom_patches/fast_pluck.rb:59:in `pluck'
lib/guardian/category_guardian.rb:69:in `allowed_category_ids'
app/models/tag.rb:102:in `top_tags'
app/serializers/site_serializer.rb:160:in `top_tags'
(eval):20:in `_fast_attributes'
app/models/site.rb:181:in `json_for'
app/controllers/application_controller.rb:605:in `preload_anonymous_data'
app/controllers/application_controller.rb:417:in `preload_json'
app/controllers/application_controller.rb:397:in `block in with_resolved_locale'
app/controllers/application_controller.rb:397:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:356:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:198:in `call'
AI-generated summary
The user Develcoder is experiencing a database error related to the missing “categories” table, resulting in an ActiveRecord::StatementInvalid error. The error occurs during the execution of a query in the fast_pluck method, which is used in the CategoryGuardian and Tag models. osioke asks for more details, while merefield suggests that the issue might be due to unrun migrations. pfaffman inquires whether this is a standard installation, and Develcoder confirms that the installation was done on their own server. merefield also requests that the error message not be repeated, as it’s already clear from the first instance.
Can you give some more detail on what the issue you’re facing is?
Is this dev? Looks like you haven’t run your migrations?
there are a few plugins, I didn’t do anything else, I don’t know why it’s coming out
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation “categories” does not exist LINE 1: SELECT “categories”.“id” FROM “categories” WHERE "categories…
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "categories" does not exist
LINE 1: SELECT "categories"."id" FROM "categories" WHERE "categories...
^
)
lib/freedom_patches/fast_pluck.rb:41:in `select_raw'
lib/freedom_patches/fast_pluck.rb:59:in `pluck'
lib/guardian/category_guardian.rb:69:in `allowed_category_ids'
app/models/tag.rb:102:in `top_tags'
app/serializers/site_serializer.rb:160:in `top_tags'
(eval):20:in `_fast_attributes'
app/models/site.rb:181:in `json_for'
app/controllers/application_controller.rb:605:in `preload_anonymous_data'
app/controllers/application_controller.rb:417:in `preload_json'
app/controllers/application_controller.rb:397:in `block in with_resolved_locale'
app/controllers/application_controller.rb:397:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:356:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:198:in `call'
Is this a standard install or something else?
Why do you need to repeat the error? We can read the first one. Please don’t do that, it’s long enough as it is.
I installed it on my own server