20190208000001_setting_timezone_default.rb 767 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingTimezoneDefault < ActiveRecord::Migration[5.1]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Timezone',
  8. name: 'timezone_default',
  9. area: 'System::Branding',
  10. description: 'Defines the system default timezone.',
  11. options: {
  12. form: [
  13. {
  14. name: 'timezone_default',
  15. }
  16. ],
  17. },
  18. state: '',
  19. preferences: {
  20. prio: 9,
  21. controller: 'SettingsAreaItemDefaultTimezone',
  22. permission: ['admin.system'],
  23. },
  24. frontend: true
  25. )
  26. end
  27. end