about summary refs log tree commit diff
path: root/db/migrate/20200919234917_add_account_to_custom_emoji.rb
blob: b4466ee30ce3fbfef6fedfc4faedc21436e2fe3e (plain) (blame)
1
2
3
4
5
6
7
class AddAccountToCustomEmoji < ActiveRecord::Migration[5.2]
  def change
    safety_assured do
      add_reference :custom_emojis, :account, foreign_key: { on_delete: :nullify }, index: true
    end
  end
end