PG::ReadOnlySqlTransaction: خطأ: لا يمكن تنفيذ SELECT في معاملة للقراءة فقط

أردت إغلاق بعض المواضيع القديمة بتشغيل استعلام في مستكشف البيانات وتعيين حقل الإغلاق إلى true عبر الاستعلام. يبدو أنني لا أستطيع تعديل البيانات حتى مع وجود صلاحيات المسؤول. هل هناك طريقة لتحقيق ذلك دون الحاجة لإغلاق هذه المواضيع بشكل فردي واحدة تلو الأخرى؟

يتم دائمًا إظهار خطأ: PG::ReadOnlySqlTransaction: ERROR: cannot execute SELECT in a read-only transaction

That’s why it’s called data explorer and not the data modifier :slight_smile:

5 إعجابات

HI @RGJ,

Thanks for you response :slight_smile:

Is there any way I can accomplish this ?

I haven’t used it yet but if for running direct SQL queries I believe this is what you’re looking for! —

You can do it from the rails console. There are some howto topics for doing mass changes to various settings.

إعجابَين (2)