Fixed migration.
This commit is contained in:
parent
7740e56204
commit
93919acfc9
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class CreateTicket < ActiveRecord::Migration
|
||||||
t.column :escalation_at, :timestamp, limit: 3, null: true
|
t.column :escalation_at, :timestamp, limit: 3, null: true
|
||||||
t.column :pending_time, :timestamp, limit: 3, null: true
|
t.column :pending_time, :timestamp, limit: 3, null: true
|
||||||
t.column :type, :string, limit: 100, 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 :preferences, :text, limit: 500.kilobytes + 1, null: true
|
||||||
t.column :updated_by_id, :integer, null: false
|
t.column :updated_by_id, :integer, null: false
|
||||||
t.column :created_by_id, :integer, null: false
|
t.column :created_by_id, :integer, null: false
|
||||||
|
|
|
@ -4,7 +4,7 @@ class AddTicketTimeAccounting373 < ActiveRecord::Migration
|
||||||
# return if it's a new setup
|
# return if it's a new setup
|
||||||
return if !Setting.find_by(name: 'system_init_done')
|
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|
|
create_table :ticket_time_accountings do |t|
|
||||||
t.references :ticket, null: false
|
t.references :ticket, null: false
|
||||||
t.references :ticket_article, null: true
|
t.references :ticket_article, null: true
|
||||||
|
|
Loading…
Reference in a new issue