115595167-colum_for_api_response

This commit is contained in:
Stas 2016-04-11 18:46:49 +03:00
parent 8f1f31f8de
commit 00391d3582
2 changed files with 16 additions and 0 deletions

View file

@ -55,6 +55,10 @@ class ApplicationController < ActionController::Base
end
end
def info_for_paper_trail
{ svTRID: request.svTRID }
end
def user_for_paper_trail
user_log_str(current_user)
end

View file

@ -0,0 +1,12 @@
class AddMatchingColumn < ActiveRecord::Migration
def change
tables = [:log_domains, :log_contacts]
tables.each do |table|
add_column table, :svTRID, :text
end
end
end