Add migration to drop `moderation_comments` table
This commit is contained in:
parent
b1bb376abd
commit
05986a124b
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DropModerationCommentsTable < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
drop_table :moderation_comments
|
||||
end
|
||||
end
|
11
db/schema.rb
11
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
|
||||
|
|
Loading…
Reference in New Issue