115595167-logs_migration

This commit is contained in:
Stas 2016-04-15 13:02:49 +03:00
parent c9c4e82989
commit 96d5ae579c
3 changed files with 5 additions and 3 deletions

View file

@ -49,7 +49,8 @@ module Repp
response_code: status,
api_user_name: current_user.try(:username),
api_user_registrar: current_user.try(:registrar).try(:to_s),
ip: request.ip
ip: request.ip,
uuid: request.uuid
})
end

View file

@ -371,7 +371,8 @@ class EppController < ApplicationController
response: @response,
api_user_name: @api_user.try(:username) || current_user.try(:username) || 'api-public',
api_user_registrar: @api_user.try(:registrar).try(:to_s) || current_user.try(:registrar).try(:to_s),
ip: request.ip
ip: request.ip,
uuid: request.uuid
})
end
# rubocop: enable Metrics/CyclomaticComplexity

View file

@ -9,7 +9,7 @@ class AddMatchingColumn < ActiveRecord::Migration
:log_zonefile_settings]
tables.each do |table|
add_column table, :uuid, :text
add_column table, :uuid, :string
end
end