20170716191202_add_hide_notifications_to_mute.rb 409 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. require Rails.root.join('lib', 'mastodon', 'migration_helpers')
  3. class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
  4. include Mastodon::MigrationHelpers
  5. disable_ddl_transaction!
  6. def up
  7. add_column_with_default :mutes, :hide_notifications, :boolean, default: true, allow_null: false
  8. end
  9. def down
  10. remove_column :mutes, :hide_notifications
  11. end
  12. end