Log REPP requests

This commit is contained in:
Martin Lensment 2015-01-13 13:58:38 +02:00
parent 0544dbd3ff
commit 568c52129f
8 changed files with 38 additions and 16 deletions

View file

@ -12,18 +12,20 @@ class CreateApiLogTables < ActiveRecord::Migration
t.boolean :request_successful
t.string :api_user_name
t.string :api_user_registrar
t.string :ip
t.timestamps
end
create_table :repp_logs do |t|
t.text :request
t.string :request_path
t.string :request_method
t.text :request_params
t.text :response
t.string :request_command
t.string :request_object
t.boolean :request_successful
t.string :response_code
t.string :api_user_name
t.string :api_user_registrar
t.string :ip
t.timestamps
end