diff --git a/db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb b/db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb new file mode 100644 index 000000000..b502fcbf7 --- /dev/null +++ b/db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb @@ -0,0 +1,29 @@ +class DefaultsCalendarSubscriptionsTickets < ActiveRecord::Migration + def up + Setting.create_if_not_exists( + title: 'Default calendar Tickets subscriptions', + name: 'defaults_calendar_subscriptions_tickets', + area: 'Defaults::CalendarSubscriptions', + description: 'Defines the default calendar Tickets subscription settings.', + options: {}, + state: { + escalation: { + own: true, + not_assigned: false, + }, + new_open: { + own: true, + not_assigned: false, + }, + pending: { + own: true, + not_assigned: false, + } + }, + frontend: true + ) + end + + def down + end +end