Improved migration.
This commit is contained in:
parent
3cf87471b7
commit
44ed80f240
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
class UpdtateTimeSlaTime < ActiveRecord::Migration
|
||||
def up
|
||||
return if !Ticket.column_names.include?('updtate_time_sla_time')
|
||||
rename_column :tickets, :updtate_time_sla_time, :update_time_sla_time
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue