20170716191202_add_hide_notifications_to_mute.rb 287 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
  3. disable_ddl_transaction!
  4. def up
  5. add_column :mutes, :hide_notifications, :boolean, default: true, null: false
  6. end
  7. def down
  8. remove_column :mutes, :hide_notifications
  9. end
  10. end