internetee-registry/db/migrate/20150109081914_create_api_log_tables.rb
2021-04-26 18:54:26 +05:00

38 lines
818 B
Ruby

class CreateApiLogTables < ActiveRecord::Migration[6.0]
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.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.string :request_path
# t.string :request_method
# t.text :request_params
# t.text :response
# t.string :response_code
# t.string :api_user_name
# t.string :api_user_registrar
# t.string :ip
# t.timestamps
# end
end
def down
drop_table :epp_logs
drop_table :repp_logs
end
end