1
0
mirror of https://github.com/discourse/discourse.git synced 2025-03-09 14:34:35 +00:00
discourse/db/migrate/20160127105314_change_default_notification_level_on_groups.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
277 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ChangeDefaultNotificationLevelOnGroups < ActiveRecord::Migration[4.2]
def change
execute "UPDATE group_users SET notification_level = 2"
change_column :group_users, :notification_level, :integer, null: false, default: 2
end
end