From 22e10652cfd7db3a9b38a5658d4fec0039f4b854 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Tue, 17 Sep 2024 10:20:26 +0200 Subject: [PATCH] Rollback migration --- .../20240916130319_update_replyable_values_on_messages.rb | 8 -------- db/schema.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 db/migrate/20240916130319_update_replyable_values_on_messages.rb diff --git a/db/migrate/20240916130319_update_replyable_values_on_messages.rb b/db/migrate/20240916130319_update_replyable_values_on_messages.rb deleted file mode 100644 index 3782777e..00000000 --- a/db/migrate/20240916130319_update_replyable_values_on_messages.rb +++ /dev/null @@ -1,8 +0,0 @@ -class UpdateReplyableValuesOnMessages < ActiveRecord::Migration[7.0] - def change - Message.find_each do |message| - govbox_message = Govbox::Message.find_by(message_id: message.uuid) - message.update(replyable: govbox_message&.replyable? || false) - end - end -end diff --git a/db/schema.rb b/db/schema.rb index d35fee4b..b22c56b6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_09_16_130319) do +ActiveRecord::Schema[7.1].define(version: 2024_08_20_143244) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql"