20181010141500_add_silent_to_mentions.rb 344 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. class AddSilentToMentions < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured do
  6. add_column(
  7. :mentions,
  8. :silent,
  9. :boolean,
  10. null: false,
  11. default: false
  12. )
  13. end
  14. end
  15. def down
  16. remove_column :mentions, :silent
  17. end
  18. end