Fixed migration.

This commit is contained in:
Martin Edenhofer 2017-01-16 14:41:56 +01:00
parent 7740e56204
commit 93919acfc9
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ class CreateTicket < ActiveRecord::Migration
t.column :escalation_at, :timestamp, limit: 3, null: true
t.column :pending_time, :timestamp, limit: 3, null: true
t.column :type, :string, limit: 100, null: true
t.column :time_unit, :decimal, precision: 6, scale: 2, null: false
t.column :time_unit, :decimal, precision: 6, scale: 2, 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

View file

@ -4,7 +4,7 @@ class AddTicketTimeAccounting373 < ActiveRecord::Migration
# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')
drop_table :ticket_time_accountings
drop_table :ticket_time_accounting
create_table :ticket_time_accountings do |t|
t.references :ticket, null: false
t.references :ticket_article, null: true