2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class AddDefaultNotificationLevelToGroup < ActiveRecord::Migration[4.2]
|
2017-04-20 15:47:25 -04:00
|
|
|
def up
|
|
|
|
add_column :groups, :default_notification_level, :integer, default: 3, null: false
|
|
|
|
# don't auto watch 'moderators' it is just way too loud
|
|
|
|
execute 'UPDATE groups SET default_notification_level = 2 WHERE id = 2'
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :groups, :default_notification_level
|
|
|
|
end
|
|
|
|
end
|