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