لا أفهم ما هي المشكلة

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'

هل يمكنك تقديم المزيد من التفاصيل حول المشكلة التي تواجهها؟

إعجابَين (2)

هل هذا مطور؟ هل يبدو أنك لم تقم بتشغيل عمليات الترحيل الخاصة بك؟

3 إعجابات

هناك عدد قليل من الإضافات، لم أفعل شيئًا آخر، لا أعرف لماذا يظهر هذا الخطأ

ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "categories" does not exist LINE 1: SELECT "categories"."id" FROM "categories" WHERE "categories…\n\n\nActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation \"categories\" does not exist\nLINE 1: SELECT \"categories\".\"id\" FROM \"categories\" WHERE \"categories...\n ^\n)\nlib/freedom_patches/fast_pluck.rb:41:in `select_raw'\nlib/freedom_patches/fast_pluck.rb:59:in `pluck'\nlib/guardian/category_guardian.rb:69:in `allowed_category_ids'\napp/models/tag.rb:102:in `top_tags'\napp/serializers/site_serializer.rb:160:in `top_tags'\n(eval):20:in `_fast_attributes'\napp/models/site.rb:181:in `json_for'\napp/controllers/application_controller.rb:605:in `preload_anonymous_data'\napp/controllers/application_controller.rb:417:in `preload_json'\napp/controllers/application_controller.rb:397:in `block in with_resolved_locale'\napp/controllers/application_controller.rb:397:in `with_resolved_locale'\nlib/middleware/omniauth_bypass_middleware.rb:71:in `call'\nlib/content_security_policy/middleware.rb:12:in `call'\nlib/middleware/anonymous_cache.rb:356:in `call'\nconfig/initializers/100-quiet_logger.rb:23:in `call'\nconfig/initializers/100-silence_logger.rb:31:in `call'\nlib/middleware/enforce_hostname.rb:23:in `call'\nlib/middleware/request_tracker.rb:198:in `call'\n

هل هذا تثبيت قياسي أم شيء آخر؟

لماذا تحتاج إلى تكرار الخطأ؟ يمكننا قراءة الخطأ الأول. من فضلك لا تفعل ذلك، فهو طويل بما فيه الكفاية كما هو.

لقد قمت بتثبيته على خادمي الخاص