mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
EPP Request logging
This commit is contained in:
parent
1b3f27e01d
commit
d5a824064e
7 changed files with 66 additions and 2 deletions
36
db/migrate/20150109081914_create_api_log_tables.rb
Normal file
36
db/migrate/20150109081914_create_api_log_tables.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue