20171207000001_permission_user_preferences_out_of_office.rb 408 B

123456789101112131415161718
  1. class PermissionUserPreferencesOutOfOffice < 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: 'user_preferences.out_of_office',
  7. note: 'Change %s',
  8. preferences: {
  9. translations: ['Out of Office'],
  10. required: ['ticket.agent'],
  11. },
  12. )
  13. end
  14. end