20180524182518_sms_support.rb 344 B

123456789101112131415
  1. class SmsSupport < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. Permission.create_if_not_exists(
  6. name: 'admin.channel_sms',
  7. note: 'Manage %s',
  8. preferences: {
  9. translations: ['Channel - SMS']
  10. },
  11. )
  12. end
  13. end