Fix ruby lint
This commit is contained in:
parent
df6de7daf5
commit
f157a509d6
6 changed files with 52 additions and 65 deletions
|
@ -1,13 +1,13 @@
|
|||
class CreateEmojiReactions < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :emoji_reactions do |t|
|
||||
|
||||
t.belongs_to :account, null: false, foreign_key: { on_delete: :cascade }, index: false
|
||||
t.belongs_to :account, null: false, foreign_key: { on_delete: :cascade }
|
||||
t.belongs_to :status, null: false, foreign_key: { on_delete: :cascade }
|
||||
t.string :name, null: false, default: ''
|
||||
t.belongs_to :custom_emoji, foreign_key: { on_delete: :cascade }, index: false
|
||||
t.belongs_to :custom_emoji, foreign_key: { on_delete: :cascade }
|
||||
t.string :uri
|
||||
|
||||
t.datetime :created_at, null: false
|
||||
t.datetime :updated_at, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
class AddCreateAtToEmojiReactions < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :emoji_reactions, :created_at, :timestamp
|
||||
add_column :emoji_reactions, :updated_at, :timestamp
|
||||
end
|
||||
end
|
|
@ -417,8 +417,10 @@ ActiveRecord::Schema.define(version: 2023_02_23_102416) do
|
|||
t.string "name", default: "", null: false
|
||||
t.bigint "custom_emoji_id"
|
||||
t.string "uri"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["account_id"], name: "index_emoji_reactions_on_account_id"
|
||||
t.index ["custom_emoji_id"], name: "index_emoji_reactions_on_custom_emoji_id"
|
||||
t.index ["status_id"], name: "index_emoji_reactions_on_status_id"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue