From 05986a124b9103f8575bc8ace90390f381d3270c Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 19 Jul 2022 00:04:44 +0200 Subject: [PATCH] Add migration to drop `moderation_comments` table --- .../20220718214748_drop_moderation_comments_table.rb | 7 +++++++ db/schema.rb | 11 +---------- 2 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 db/migrate/20220718214748_drop_moderation_comments_table.rb diff --git a/db/migrate/20220718214748_drop_moderation_comments_table.rb b/db/migrate/20220718214748_drop_moderation_comments_table.rb new file mode 100644 index 00000000..84f52288 --- /dev/null +++ b/db/migrate/20220718214748_drop_moderation_comments_table.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class DropModerationCommentsTable < ActiveRecord::Migration[6.1] + def up + drop_table :moderation_comments + end +end diff --git a/db/schema.rb b/db/schema.rb index c86ea7b0..ceacd302 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.define(version: 2022_07_18_201541) do +ActiveRecord::Schema.define(version: 2022_07_18_214748) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -101,15 +101,6 @@ ActiveRecord::Schema.define(version: 2022_07_18_201541) do t.index ["user_id", "name"], name: "index_lists_on_user_id_and_name", unique: true end - create_table "moderation_comments", id: :serial, force: :cascade do |t| - t.integer "report_id" - t.bigint "user_id" - t.string "content" - t.datetime "created_at" - t.datetime "updated_at" - t.index ["user_id", "created_at"], name: "index_moderation_comments_on_user_id_and_created_at" - end - create_table "mute_rules", id: :bigint, default: -> { "gen_timestamp_id('mute_rules'::text)" }, force: :cascade do |t| t.string "muted_phrase" t.datetime "created_at", null: false