PG::ReadOnlySqlTransaction: エラー:読み取り専用トランザクション内で SELECT を実行できません

古いトピックを閉じたいと思い、Data Explorer でクエリを実行して closed フィールドを 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