mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add group settngs to allow users to leave a group freely.
https://meta.discourse.org/t/split-join-leave-freely-setting-on-groups/65565
This commit is contained in:
@@ -7,8 +7,8 @@ Group.where(name: 'everyone').update_all(visibility_level: Group.visibility_leve
|
||||
|
||||
ColumnDropper.drop(
|
||||
table: 'groups',
|
||||
after_migration: 'AddVisibleBackToGroups',
|
||||
columns: %w[visible],
|
||||
after_migration: 'RemovePublicFromGroups',
|
||||
columns: %w[visible public],
|
||||
on_drop: ->() {
|
||||
STDERR.puts 'Removing superflous visible group column!'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user