From b84a871187a26981efbaa3676cfc5b2c6add6aaf Mon Sep 17 00:00:00 2001 From: Anna Buianova Date: Thu, 19 Oct 2023 19:22:40 +0300 Subject: [PATCH] Removed columns that were ignored earlier (#20253) --- .../20231018102332_remove_tags_mod_chat_channel_id.rb | 7 +++++++ .../20231018104234_remove_html_variants_success_rate.rb | 7 +++++++ .../20231018104259_remove_listings_contact_via_connect.rb | 7 +++++++ ..._remove_notification_settings_email_connect_messages.rb | 7 +++++++ db/schema.rb | 6 +----- 5 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 db/migrate/20231018102332_remove_tags_mod_chat_channel_id.rb create mode 100644 db/migrate/20231018104234_remove_html_variants_success_rate.rb create mode 100644 db/migrate/20231018104259_remove_listings_contact_via_connect.rb create mode 100644 db/migrate/20231018104337_remove_notification_settings_email_connect_messages.rb diff --git a/db/migrate/20231018102332_remove_tags_mod_chat_channel_id.rb b/db/migrate/20231018102332_remove_tags_mod_chat_channel_id.rb new file mode 100644 index 000000000..7ba027966 --- /dev/null +++ b/db/migrate/20231018102332_remove_tags_mod_chat_channel_id.rb @@ -0,0 +1,7 @@ +class RemoveTagsModChatChannelId < ActiveRecord::Migration[7.0] + def change + safety_assured do + remove_column :tags, :mod_chat_channel_id + end + end +end diff --git a/db/migrate/20231018104234_remove_html_variants_success_rate.rb b/db/migrate/20231018104234_remove_html_variants_success_rate.rb new file mode 100644 index 000000000..89ad347cd --- /dev/null +++ b/db/migrate/20231018104234_remove_html_variants_success_rate.rb @@ -0,0 +1,7 @@ +class RemoveHtmlVariantsSuccessRate < ActiveRecord::Migration[7.0] + def change + safety_assured do + remove_column :html_variants, :success_rate + end + end +end diff --git a/db/migrate/20231018104259_remove_listings_contact_via_connect.rb b/db/migrate/20231018104259_remove_listings_contact_via_connect.rb new file mode 100644 index 000000000..ab440f8dd --- /dev/null +++ b/db/migrate/20231018104259_remove_listings_contact_via_connect.rb @@ -0,0 +1,7 @@ +class RemoveListingsContactViaConnect < ActiveRecord::Migration[7.0] + def change + safety_assured do + remove_column :classified_listings, :contact_via_connect + end + end +end diff --git a/db/migrate/20231018104337_remove_notification_settings_email_connect_messages.rb b/db/migrate/20231018104337_remove_notification_settings_email_connect_messages.rb new file mode 100644 index 000000000..7dd618a59 --- /dev/null +++ b/db/migrate/20231018104337_remove_notification_settings_email_connect_messages.rb @@ -0,0 +1,7 @@ +class RemoveNotificationSettingsEmailConnectMessages < ActiveRecord::Migration[7.0] + def change + safety_assured do + remove_column :users_notification_settings, :email_connect_messages + end + end +end diff --git a/db/schema.rb b/db/schema.rb index ba208da38..861be6395 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.0].define(version: 2023_10_17_120855) do +ActiveRecord::Schema[7.0].define(version: 2023_10_18_104337) do # These are extensions that must be enabled in order to support this database enable_extension "citext" enable_extension "ltree" @@ -317,7 +317,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_120855) do t.datetime "bumped_at", precision: nil t.string "cached_tag_list" t.bigint "classified_listing_category_id" - t.boolean "contact_via_connect", default: false t.datetime "created_at", precision: nil, null: false t.datetime "expires_at", precision: nil t.string "location" @@ -627,7 +626,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_120855) do t.text "html" t.string "name" t.boolean "published", default: false - t.float "success_rate", default: 0.0 t.string "target_tag" t.datetime "updated_at", precision: nil, null: false t.bigint "user_id" @@ -1123,7 +1121,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_120855) do t.datetime "created_at", precision: nil, null: false t.integer "hotness_score", default: 0 t.string "keywords_for_search" - t.bigint "mod_chat_channel_id" t.string "name" t.string "pretty_name" t.string "profile_image" @@ -1340,7 +1337,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_120855) do t.boolean "email_badge_notifications", default: true, null: false t.boolean "email_comment_notifications", default: true, null: false t.boolean "email_community_mod_newsletter", default: false, null: false - t.boolean "email_connect_messages", default: true, null: false t.boolean "email_digest_periodic", default: false, null: false t.boolean "email_follower_notifications", default: true, null: false t.boolean "email_membership_newsletter", default: false, null: false