mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
9 lines
258 B
Ruby
9 lines
258 B
Ruby
|
class SplitAliasLevels < ActiveRecord::Migration
|
||
|
def change
|
||
|
rename_column :groups, :alias_level, :mentionable_level
|
||
|
add_column :groups, :messageable_level, :integer, default: 0
|
||
|
|
||
|
Group.update_all('messageable_level=mentionable_level')
|
||
|
end
|
||
|
end
|