Add migration to drop `comment_smiles` table

This commit is contained in:
Karina Kwiatek 2022-07-06 19:49:31 +02:00 committed by Karina Kwiatek
parent ee7ef9ceca
commit 72866f7a84
2 changed files with 8 additions and 11 deletions

View File

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

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_07_06_174120) do
ActiveRecord::Schema.define(version: 2022_07_06_174816) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -62,16 +62,6 @@ ActiveRecord::Schema.define(version: 2022_07_06_174120) do
t.index ["user_id", "created_at"], name: "index_appendables_on_user_id_and_created_at"
end
create_table "comment_smiles", id: :bigint, default: -> { "gen_timestamp_id('comment_smiles'::text)" }, force: :cascade do |t|
t.bigint "user_id"
t.bigint "comment_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["comment_id"], name: "index_comment_smiles_on_comment_id"
t.index ["user_id", "comment_id"], name: "index_comment_smiles_on_user_id_and_comment_id", unique: true
t.index ["user_id"], name: "index_comment_smiles_on_user_id"
end
create_table "comments", id: :bigint, default: -> { "gen_timestamp_id('comments'::text)" }, force: :cascade do |t|
t.string "content"
t.bigint "answer_id"