mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 05:23:40 +08:00
17 lines
525 B
Ruby
17 lines
525 B
Ruby
|
class RenamePrivatePersonal < ActiveRecord::Migration[5.1]
|
||
|
|
||
|
def setting(old, new)
|
||
|
execute "UPDATE site_settings SET name='#{new}' where name='#{old}'"
|
||
|
end
|
||
|
|
||
|
def up
|
||
|
setting :min_private_message_post_length, :min_personal_message_post_length
|
||
|
setting :min_private_message_title_length, :min_personal_message_title_length
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
setting :min_private_message_post_length, :min_personal_message_post_length
|
||
|
setting :min_private_message_title_length, :min_personal_message_title_length
|
||
|
end
|
||
|
end
|