2013-11-17 20:53:14 -05:00
|
|
|
Group.ensure_automatic_groups!
|
2014-07-09 22:17:13 -04:00
|
|
|
if g = Group.find_by(name: 'trust_level_5', id: 15)
|
|
|
|
g.destroy!
|
|
|
|
end
|
2017-07-03 15:26:46 -04:00
|
|
|
|
|
|
|
Group.where(name: 'everyone').update_all(visibility_level: Group.visibility_levels[:owners])
|
2017-07-04 10:31:10 -04:00
|
|
|
|
2018-03-20 03:20:50 -04:00
|
|
|
Migration::ColumnDropper.drop(
|
2017-07-04 10:31:10 -04:00
|
|
|
table: 'groups',
|
2017-08-28 13:26:03 -04:00
|
|
|
after_migration: 'SplitAliasLevels',
|
|
|
|
columns: %w[visible public alias_level],
|
2017-07-27 21:20:09 -04:00
|
|
|
on_drop: ->() {
|
2017-07-04 10:31:10 -04:00
|
|
|
STDERR.puts 'Removing superflous visible group column!'
|
|
|
|
}
|
|
|
|
)
|