2018-10-16 08:45:15 +00:00
|
|
|
class SmsSupport < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
|
|
|
|
|
|
|
# return if it's a new setup
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2018-10-16 08:45:15 +00:00
|
|
|
|
|
|
|
Permission.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
name: 'admin.channel_sms',
|
|
|
|
note: 'Manage %s',
|
2018-10-16 08:45:15 +00:00
|
|
|
preferences: {
|
|
|
|
translations: ['Channel - SMS']
|
|
|
|
},
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|