EPP Request logging

This commit is contained in:
Martin Lensment 2015-01-09 11:46:55 +02:00
parent 1b3f27e01d
commit d5a824064e
7 changed files with 66 additions and 2 deletions

View file

@ -0,0 +1,36 @@
class CreateApiLogTables < ActiveRecord::Migration
def connection
ApiLog::Db.connection
end
def up
create_table :epp_logs do |t|
t.text :request
t.text :response
t.string :request_command
t.string :request_object
t.string :request_successful
t.string :api_user_name
t.string :api_user_registrar
t.timestamps
end
create_table :repp_logs do |t|
t.text :request
t.text :response
t.string :request_command
t.string :request_object
t.string :request_successful
t.string :api_user_name
t.string :api_user_registrar
t.timestamps
end
end
def down
drop_table :epp_logs
drop_table :repp_logs
end
end