Merged migrations.
This commit is contained in:
parent
14c95ce964
commit
c6f160f14d
4 changed files with 18 additions and 53 deletions
|
@ -1,29 +0,0 @@
|
||||||
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
|
|
|
@ -1,16 +0,0 @@
|
||||||
class TranslatorKeyAdd < ActiveRecord::Migration
|
|
||||||
def up
|
|
||||||
Setting.create_if_not_exists(
|
|
||||||
title: 'Define translator identifier.',
|
|
||||||
name: 'translator_key',
|
|
||||||
area: 'i18n::translator_key',
|
|
||||||
description: 'Defines the translator identifier for contributions.',
|
|
||||||
options: {},
|
|
||||||
state: '',
|
|
||||||
frontend: false
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
def down
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,8 +0,0 @@
|
||||||
class UpdateLogo < ActiveRecord::Migration
|
|
||||||
def up
|
|
||||||
|
|
||||||
return if !Setting.find_by(name: 'product_logo')
|
|
||||||
StaticAssets.read
|
|
||||||
StaticAssets.sync
|
|
||||||
end
|
|
||||||
end
|
|
18
db/seeds.rb
18
db/seeds.rb
|
@ -1441,6 +1441,16 @@ Setting.create_if_not_exists(
|
||||||
frontend: true
|
frontend: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Setting.create_if_not_exists(
|
||||||
|
title: 'Define translator identifier.',
|
||||||
|
name: 'translator_key',
|
||||||
|
area: 'i18n::translator_key',
|
||||||
|
description: 'Defines the translator identifier for contributions.',
|
||||||
|
options: {},
|
||||||
|
state: '',
|
||||||
|
frontend: false
|
||||||
|
)
|
||||||
|
|
||||||
signature = Signature.create_if_not_exists(
|
signature = Signature.create_if_not_exists(
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'default',
|
name: 'default',
|
||||||
|
@ -1936,6 +1946,14 @@ Network::Item::Comment.create(
|
||||||
body: 'Some comment....',
|
body: 'Some comment....',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Scheduler.create_or_update(
|
||||||
|
name: 'Process pending tickets',
|
||||||
|
method: 'Ticket.process_pending',
|
||||||
|
period: 60 * 15,
|
||||||
|
prio: 1,
|
||||||
|
active: true,
|
||||||
|
)
|
||||||
|
|
||||||
# install locales and translations
|
# install locales and translations
|
||||||
Locale.create_if_not_exists(
|
Locale.create_if_not_exists(
|
||||||
locale: 'en-us',
|
locale: 'en-us',
|
||||||
|
|
Loading…
Reference in a new issue