FEATURE: change group default tracking level to tracking (database changes)

This commit is contained in:
Sam Saffron 2016-01-27 21:56:25 +11:00
parent 8aea75edec
commit bf650de7be
2 changed files with 7 additions and 1 deletions

View File

@ -67,7 +67,7 @@ end
# created_at :datetime not null
# updated_at :datetime not null
# owner :boolean default(FALSE), not null
# notification_level :integer default(3), not null
# notification_level :integer default(2), not null
#
# Indexes
#

View File

@ -0,0 +1,6 @@
class ChangeDefaultNotificationLevelOnGroups < ActiveRecord::Migration
def change
execute "UPDATE group_users SET notification_level = 2"
change_column :group_users, :notification_level, :integer, null: false, default: 2
end
end