20171005171936_add_disabled_to_custom_emojis.rb 299 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddDisabledToCustomEmojis < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured { add_column :custom_emojis, :disabled, :bool, default: false, null: false }
  6. end
  7. def down
  8. remove_column :custom_emojis, :disabled
  9. end
  10. end