FEATURE: change group default tracking level to tracking (database changes)
This commit is contained in:
parent
8aea75edec
commit
bf650de7be
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue