mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-02-13 09:34:00 -05:00
Use Rails.logger
This commit is contained in:
@@ -29,7 +29,7 @@ class CreateVehicles < ActiveRecord::Migration[5.1]
|
||||
add_reference :issues, :vehicle, index: true
|
||||
}
|
||||
rescue
|
||||
logger.error "Failed to create vehicles & refrences"
|
||||
Rails.logger.error "Failed to create vehicles & refrences"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -16,7 +16,7 @@ class UpdateVehicles < ActiveRecord::Migration[5.1]
|
||||
rename_column :issues, :vehicles_id, :vehicle_id
|
||||
}
|
||||
rescue
|
||||
logger.error "Failed to update to use vehicle_id"
|
||||
Rails.logger.error "Failed to update to use vehicle_id"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user