mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 07:16:44 +08:00
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
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# owner :boolean default(FALSE), not null
|
# owner :boolean default(FALSE), not null
|
||||||
# notification_level :integer default(3), not null
|
# notification_level :integer default(2), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# 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…
x
Reference in New Issue
Block a user