Merged migrations.

This commit is contained in:
Martin Edenhofer 2016-02-07 16:17:45 +01:00
parent cbac73f1ef
commit ea640474a3
5 changed files with 23 additions and 33 deletions

View file

@ -63,6 +63,7 @@ class CreateTicket < ActiveRecord::Migration
t.column :escalation_time, :timestamp, null: true
t.column :pending_time, :timestamp, null: true
t.column :type, :string, limit: 100, null: true
t.column :preferences, :text, limit: 500.kilobytes + 1, null: true
t.column :updated_by_id, :integer, null: false
t.column :created_by_id, :integer, null: false
t.timestamps null: false

View file

@ -60,9 +60,9 @@ class UpdateSettings4 < ActiveRecord::Migration
name: 'ticket_hook_position',
tag: 'select',
options: {
'left' => 'Left',
'right' => 'Right',
'none' => 'None',
'left' => 'left',
'right' => 'right',
'none' => 'none',
},
},
],

View file

@ -77,6 +77,25 @@ class CreateChat < ActiveRecord::Migration
created_by_id: 1,
)
Scheduler.create_or_update(
name: 'Closed chat sessions where participients are offline.',
method: 'Chat.cleanup_close',
period: 60 * 15,
prio: 2,
active: true,
updated_by_id: 1,
created_by_id: 1,
)
Scheduler.create_or_update(
name: 'Cleanup closed sessions.',
method: 'Chat.cleanup',
period: 5.days,
prio: 2,
active: true,
updated_by_id: 1,
created_by_id: 1,
)
end
def down

View file

@ -1,25 +0,0 @@
class UpdateChat4 < ActiveRecord::Migration
def up
Scheduler.create_or_update(
name: 'Closed chat sessions where participients are offline.',
method: 'Chat.cleanup_close',
period: 60 * 15,
prio: 2,
active: true,
updated_by_id: 1,
created_by_id: 1,
)
Scheduler.create_or_update(
name: 'Cleanup closed sessions.',
method: 'Chat.cleanup',
period: 5.days,
prio: 2,
active: true,
updated_by_id: 1,
created_by_id: 1,
)
end
def down
end
end

View file

@ -1,5 +0,0 @@
class UpdateTicketPreferences < ActiveRecord::Migration
def up
add_column :tickets, :preferences, :text, limit: 500.kilobytes + 1, null: true
end
end