mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
add back column temporarily to make deployment smoother
This commit is contained in:
@@ -4,3 +4,12 @@ if g = Group.find_by(name: 'trust_level_5', id: 15)
|
||||
end
|
||||
|
||||
Group.where(name: 'everyone').update_all(visibility_level: Group.visibility_levels[:owners])
|
||||
|
||||
ColumnDropper.drop(
|
||||
table: 'groups',
|
||||
after_migration: 'AddVisibleBackToGroups',
|
||||
columns: %w[visible],
|
||||
on_drop: ->(){
|
||||
STDERR.puts 'Removing superflous visible group column!'
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user