From becdf1c48f4679686204c6e325a9cabf2df047cb Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 13 Jan 2015 16:47:18 +0200 Subject: [PATCH] New schema --- db/api_log_schema.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/db/api_log_schema.rb b/db/api_log_schema.rb index 1ba83581c..74252a159 100644 --- a/db/api_log_schema.rb +++ b/db/api_log_schema.rb @@ -16,28 +16,28 @@ ActiveRecord::Schema.define(version: 0) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" - create_table "epp_logs", force: true do |t| + create_table "epp_logs", force: :cascade do |t| t.text "request" t.text "response" - t.string "request_command" - t.string "request_object" + t.string "request_command", limit: 255 + t.string "request_object", limit: 255 t.boolean "request_successful" - t.string "api_user_name" - t.string "api_user_registrar" - t.string "ip" + t.string "api_user_name", limit: 255 + t.string "api_user_registrar", limit: 255 + t.string "ip", limit: 255 t.datetime "created_at" t.datetime "updated_at" end - create_table "repp_logs", force: true do |t| - t.string "request_path" - t.string "request_method" + create_table "repp_logs", force: :cascade do |t| + t.string "request_path", limit: 255 + t.string "request_method", limit: 255 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.string "response_code", limit: 255 + t.string "api_user_name", limit: 255 + t.string "api_user_registrar", limit: 255 + t.string "ip", limit: 255 t.datetime "created_at" t.datetime "updated_at" end