Add migration to drop `moderation_comments` table

This commit is contained in:
Andreas Nedbal 2022-07-19 00:04:44 +02:00 committed by Karina Kwiatek
parent b1bb376abd
commit 05986a124b
2 changed files with 8 additions and 10 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class DropModerationCommentsTable < ActiveRecord::Migration[6.1]
def up
drop_table :moderation_comments
end
end

View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" 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 t.index ["user_id", "name"], name: "index_lists_on_user_id_and_name", unique: true
end 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| create_table "mute_rules", id: :bigint, default: -> { "gen_timestamp_id('mute_rules'::text)" }, force: :cascade do |t|
t.string "muted_phrase" t.string "muted_phrase"
t.datetime "created_at", null: false t.datetime "created_at", null: false