internetee-registry/db/migrate/20150109081914_create_api_log_tables.rb
2015-01-09 11:46:55 +02:00

36 lines
731 B
Ruby

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