discourse/db/fixtures/002_groups.rb

16 lines
395 B
Ruby
Raw Normal View History

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
Group.where(name: 'everyone').update_all(visibility_level: Group.visibility_levels[:owners])
ColumnDropper.drop(
table: 'groups',
after_migration: 'RemovePublicFromGroups',
columns: %w[visible public],
2017-07-27 21:20:09 -04:00
on_drop: ->() {
STDERR.puts 'Removing superflous visible group column!'
}
)