mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
38 lines
813 B
Ruby
38 lines
813 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.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
|