mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
115595167-colum_for_api_response
This commit is contained in:
parent
8f1f31f8de
commit
00391d3582
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
12
db/migrate/20160411140719_add_matching_column.rb
Normal file
12
db/migrate/20160411140719_add_matching_column.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue