spec/dummy/log/development.log in mks_rate-1.0.4 vs spec/dummy/log/development.log in mks_rate-1.0.5
- old
+ new
@@ -322,5 +322,331 @@
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
[1m[36mActiveRecord::InternalMetadata Update (0.9ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-09-05 13:42:45.978374"], ["key", "environment"]]
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
+ [1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ [1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
+ [1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
+ [1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ [1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
+ [1m[35m (122.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "construction_test"[0m
+ [1m[35m (318.9ms)[0m [1m[35mCREATE DATABASE "construction_test" ENCODING = 'utf8'[0m
+ [1m[35mSQL (0.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE[0m
+ [1m[35m (10.3ms)[0m [1m[35mCREATE TABLE "mks_auth_application_modules" ("id" serial NOT NULL PRIMARY KEY, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus" CASCADE[0m
+ [1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "mks_auth_menus" ("id" serial NOT NULL PRIMARY KEY, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")[0m
+ [1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE[0m
+ [1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)[0m
+ [1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id" ON "mks_auth_menus_user_roles" ("menu_id", "user_role_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE[0m
+ [1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "application_module_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (4.4ms)[0m [1m[35mCREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users" CASCADE[0m
+ [1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "mks_auth_users" ("id" serial NOT NULL PRIMARY KEY, "first_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE[0m
+ [1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE[0m
+ [1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)[0m
+ [1m[35m (5.0ms)[0m [1m[35mCREATE INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id" ON "mks_auth_users_user_roles" ("user_id", "user_role_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipment_categories" CASCADE[0m
+ [1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "mks_edm_equipment_categories" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "description" character varying, "equipment_type_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "ec_on_et_indx" ON "mks_edm_equipment_categories" ("equipment_type_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipment_components" CASCADE[0m
+ [1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "mks_edm_equipment_components" ("id" bigserial primary key, "serial_no" character varying, "name" character varying NOT NULL, "equipment_item_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "ei_on_ec_indx" ON "mks_edm_equipment_components" ("equipment_item_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipment_items" CASCADE[0m
+ [1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "mks_edm_equipment_items" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "description" character varying, "status" character varying DEFAULT 'READY', "serial_number" character varying, "brand" character varying, "item_model" character varying, "purchase_price" float NOT NULL, "purchase_date" date NOT NULL, "license_fee" float, "tax" float, "equipment_id" bigint, "current_location_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "equipment_on_el_indx" ON "mks_edm_equipment_items" ("current_location_id")[0m
+ [1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "equipment_on_ei_indx" ON "mks_edm_equipment_items" ("equipment_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipment_locations" CASCADE[0m
+ [1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "mks_edm_equipment_locations" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "location_type_id" bigint, "description" character varying, "address" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "lt_on_el_indx" ON "mks_edm_equipment_locations" ("location_type_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipment_types" CASCADE[0m
+ [1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "mks_edm_equipment_types" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipment_valuations" CASCADE[0m
+ [1m[35m (6.5ms)[0m [1m[35mCREATE TABLE "mks_edm_equipment_valuations" ("id" bigserial primary key, "equipment_item_id" bigint, "initial_cost" float NOT NULL, "residual_value" float NOT NULL, "work_hrs_per_yr" float NOT NULL, "life_year" float NOT NULL, "insurance_premium" float NOT NULL, "fuel_cost_per_hr" float, "oil_rate" float, "repair_rate" float, "rate_of_return" float, "dep_method" character varying, "is_current" boolean DEFAULT TRUE, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.7ms)[0m [1m[35mCREATE INDEX "ev_on_ei_indx" ON "mks_edm_equipment_valuations" ("equipment_item_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_equipments" CASCADE[0m
+ [1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "mks_edm_equipments" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "description" character varying, "minimum_acquisition_time" float DEFAULT 0.0 NOT NULL, "equipment_category_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "equipment_on_ec_indx" ON "mks_edm_equipments" ("equipment_category_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_edm_location_types" CASCADE[0m
+ [1m[35m (6.9ms)[0m [1m[35mCREATE TABLE "mks_edm_location_types" ("id" bigserial primary key, "code" character varying, "name" character varying, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_cost_types" CASCADE[0m
+ [1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "mks_maintenance_cost_types" ("id" bigserial primary key, "code" character varying, "name" character varying, "fields" json NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_job_cards" CASCADE[0m
+ [1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "mks_maintenance_job_cards" ("id" bigserial primary key, "maintenance_service_order_id" bigint, "code" character varying, "start_date" date, "due_date" date, "service_provider_id" bigint, "checkout_date" date, "checkout_by_id" bigint, "checkout_to_id" bigint, "maintenance_status_id" bigint, "checkin_date" date, "checkin_by_id" bigint, "checkin_to_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "approved" boolean DEFAULT FALSE, "checkout_confirmed" boolean DEFAULT FALSE, "checkin_confirmed" boolean DEFAULT FALSE, "costs_approved" boolean DEFAULT FALSE, "prepared_by_id" integer)[0m
+ [1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "chb_on_jc_indx" ON "mks_maintenance_job_cards" ("checkin_by_id")[0m
+ [1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "cht_on_jc_indx" ON "mks_maintenance_job_cards" ("checkin_to_id")[0m
+ [1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "cb_on_jc_indx" ON "mks_maintenance_job_cards" ("checkout_by_id")[0m
+ [1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "ct_on_jc_indx" ON "mks_maintenance_job_cards" ("checkout_to_id")[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "mso_on_jc_indx" ON "mks_maintenance_job_cards" ("maintenance_service_order_id")[0m
+ [1m[35m (4.5ms)[0m [1m[35mCREATE INDEX "ms_on_jc_indx" ON "mks_maintenance_job_cards" ("maintenance_status_id")[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "sp_on_jc_indx" ON "mks_maintenance_job_cards" ("service_provider_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_maintenance_categories" CASCADE[0m
+ [1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "mks_maintenance_maintenance_categories" ("id" bigserial primary key, "code" character varying, "name" character varying, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_maintenance_costs" CASCADE[0m
+ [1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "mks_maintenance_maintenance_costs" ("id" bigserial primary key, "job_card_id" bigint, "cost_type_id" bigint, "cost_detail" json NOT NULL, "remark" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "ct_on_mc_indx" ON "mks_maintenance_maintenance_costs" ("cost_type_id")[0m
+ [1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "jc_on_mc_indx" ON "mks_maintenance_maintenance_costs" ("job_card_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_maintenance_service_orders" CASCADE[0m
+ [1m[35m (7.8ms)[0m [1m[35mCREATE TABLE "mks_maintenance_maintenance_service_orders" ("id" bigserial primary key, "title" character varying NOT NULL, "description" character varying, "equipment_item_id" bigint, "maintenance_type_id" bigint, "start_date" date, "end_date" date, "prepared_by_id" bigint, "approved" boolean DEFAULT FALSE, "status" character varying DEFAULT 'draft', "approved_by_id" bigint, "remark" character varying, "current_reading" float NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "ab_on_mso_indx" ON "mks_maintenance_maintenance_service_orders" ("approved_by_id")[0m
+ [1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "ei_on_mso_indx" ON "mks_maintenance_maintenance_service_orders" ("equipment_item_id")[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "mt_on_mso_indx" ON "mks_maintenance_maintenance_service_orders" ("maintenance_type_id")[0m
+ [1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "pb_on_mso_indx" ON "mks_maintenance_maintenance_service_orders" ("prepared_by_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_maintenance_statuses" CASCADE[0m
+ [1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "mks_maintenance_maintenance_statuses" ("id" bigserial primary key, "code" character varying, "name" character varying, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_maintenance_types" CASCADE[0m
+ [1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "mks_maintenance_maintenance_types" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "description" character varying, "maintenance_category_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "mt_on_mc_indx" ON "mks_maintenance_maintenance_types" ("maintenance_category_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_schedule_settings" CASCADE[0m
+ [1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "mks_maintenance_schedule_settings" ("id" bigserial primary key, "equipment_id" bigint, "maintenance_type_id" bigint, "schedule_unit_id" bigint, "value" float NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "equipment_on_ss_indx" ON "mks_maintenance_schedule_settings" ("equipment_id")[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "mt_on_ss_indx" ON "mks_maintenance_schedule_settings" ("maintenance_type_id")[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "su_on_ss_indx" ON "mks_maintenance_schedule_settings" ("schedule_unit_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_maintenance_schedule_units" CASCADE[0m
+ [1m[35m (6.5ms)[0m [1m[35mCREATE TABLE "mks_maintenance_schedule_units" ("id" bigserial primary key, "code" character varying, "name" character varying, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.9ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_chargeable_service_discounts" CASCADE[0m
+ [1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "mks_rate_chargeable_service_discounts" ("id" bigserial primary key, "unit_variable" character varying NOT NULL, "from" float NOT NULL, "to" float NOT NULL, "value" float NOT NULL, "chargeable_service_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_chargeable_services" CASCADE[0m
+ [1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "mks_rate_chargeable_services" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "service_type_id" integer, "base_unit_id" integer, "utilization_unit_id" integer, "service_delivery_unit_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "bu_on_cs_indx" ON "mks_rate_chargeable_services" ("base_unit_id")[0m
+ [1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "sdu_on_cs_indx" ON "mks_rate_chargeable_services" ("service_delivery_unit_id")[0m
+ [1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "st_on_cs_indx" ON "mks_rate_chargeable_services" ("service_type_id")[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "uu_on_cs_indx" ON "mks_rate_chargeable_services" ("utilization_unit_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_rate_change_requests" CASCADE[0m
+ [1m[35m (6.9ms)[0m [1m[35mCREATE TABLE "mks_rate_rate_change_requests" ("id" bigserial primary key, "reference_number" character varying, "authorized_by" character varying NOT NULL, "effective_on" date NOT NULL, "authorized_on" date NOT NULL, "rates" json NOT NULL, "status" character varying DEFAULT 'SUBMITTED' NOT NULL, "created_by_id" bigint, "approved_by_id" bigint, "remark" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (4.6ms)[0m [1m[35mCREATE INDEX "ab_on_rcr_indx" ON "mks_rate_rate_change_requests" ("approved_by_id")[0m
+ [1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "cb_on_rcr_indx" ON "mks_rate_rate_change_requests" ("created_by_id")[0m
+ [1m[35m (3.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_mks_rate_rate_change_requests_on_reference_number" ON "mks_rate_rate_change_requests" ("reference_number")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_service_bundles" CASCADE[0m
+ [1m[35m (6.9ms)[0m [1m[35mCREATE TABLE "mks_rate_service_bundles" ("id" bigserial primary key, "code" character varying, "name" character varying NOT NULL, "description" character varying, "percent_discount" float DEFAULT 0.0 NOT NULL, "service_delivery_unit_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "sdu_on_sb_indx" ON "mks_rate_service_bundles" ("service_delivery_unit_id")[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_service_bundles_chargeable_services" CASCADE[0m
+ [1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "mks_rate_service_bundles_chargeable_services" ("service_bundle_id" bigint, "chargeable_service_id" bigint)[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "sb_on_cs_indx" ON "mks_rate_service_bundles_chargeable_services" ("service_bundle_id", "chargeable_service_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_service_delivery_units" CASCADE[0m
+ [1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "mks_rate_service_delivery_units" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "address" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_service_rates" CASCADE[0m
+ [1m[35m (5.0ms)[0m [1m[35mCREATE TABLE "mks_rate_service_rates" ("id" bigserial primary key, "chargeable_service_id" bigint, "equipment_item_id" bigint, "base_rate" float DEFAULT 0.0, "utilization_rate" float DEFAULT 0.0, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "cs_on_sr_indx" ON "mks_rate_service_rates" ("chargeable_service_id")[0m
+ [1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "cs_on_ei_indx" ON "mks_rate_service_rates" ("equipment_item_id")[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_service_types" CASCADE[0m
+ [1m[35m (6.9ms)[0m [1m[35mCREATE TABLE "mks_rate_service_types" ("id" bigserial primary key, "code" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rate_unit_of_charges" CASCADE[0m
+ [1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "mks_rate_unit_of_charges" ("id" bigserial primary key, "name" character varying NOT NULL, "unit_variables" json NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (1.8ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rent_clients" CASCADE[0m
+ [1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "mks_rent_clients" ("id" bigserial primary key, "name" character varying NOT NULL, "address" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE[0m
+ [1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "mks_rent_offer_requests" ("id" bigserial primary key, "client_id" bigint, "description" character varying, "destination" character varying, "prepared_by_id" bigint, "status" character varying DEFAULT 'DRAFT' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")[0m
+ [1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")[0m
+ [1m[35m (3.2ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
+FOREIGN KEY ("application_module_id")
+ REFERENCES "mks_auth_application_modules" ("id")
+[0m
+ [1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
+FOREIGN KEY ("parent_id")
+ REFERENCES "mks_auth_menus" ("id")
+[0m
+ [1m[35m (2.7ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
+FOREIGN KEY ("menu_id")
+ REFERENCES "mks_auth_menus" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0"
+FOREIGN KEY ("user_role_id")
+ REFERENCES "mks_auth_user_roles" ("id")
+[0m
+ [1m[35m (2.2ms)[0m [1m[35mALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
+FOREIGN KEY ("application_module_id")
+ REFERENCES "mks_auth_application_modules" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c"
+FOREIGN KEY ("application_module_id")
+ REFERENCES "mks_auth_application_modules" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
+FOREIGN KEY ("user_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8"
+FOREIGN KEY ("user_role_id")
+ REFERENCES "mks_auth_user_roles" ("id")
+[0m
+ [1m[35m (2.2ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
+FOREIGN KEY ("user_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_edm_equipment_categories" ADD CONSTRAINT "fk_rails_37d48f9db9"
+FOREIGN KEY ("equipment_type_id")
+ REFERENCES "mks_edm_equipment_types" ("id")
+[0m
+ [1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_edm_equipment_components" ADD CONSTRAINT "fk_rails_df30d7c6f8"
+FOREIGN KEY ("equipment_item_id")
+ REFERENCES "mks_edm_equipment_items" ("id")
+[0m
+ [1m[35m (3.5ms)[0m [1m[35mALTER TABLE "mks_edm_equipment_items" ADD CONSTRAINT "fk_rails_c0b56e395b"
+FOREIGN KEY ("current_location_id")
+ REFERENCES "mks_edm_equipment_locations" ("id")
+[0m
+ [1m[35m (3.0ms)[0m [1m[35mALTER TABLE "mks_edm_equipment_items" ADD CONSTRAINT "fk_rails_9c44a32cfe"
+FOREIGN KEY ("equipment_id")
+ REFERENCES "mks_edm_equipments" ("id")
+[0m
+ [1m[35m (2.9ms)[0m [1m[35mALTER TABLE "mks_edm_equipment_locations" ADD CONSTRAINT "fk_rails_4117320862"
+FOREIGN KEY ("location_type_id")
+ REFERENCES "mks_edm_location_types" ("id")
+[0m
+ [1m[35m (2.8ms)[0m [1m[35mALTER TABLE "mks_edm_equipment_valuations" ADD CONSTRAINT "fk_rails_b09a0ab3c3"
+FOREIGN KEY ("equipment_item_id")
+ REFERENCES "mks_edm_equipment_items" ("id")
+[0m
+ [1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_edm_equipments" ADD CONSTRAINT "fk_rails_59110db010"
+FOREIGN KEY ("equipment_category_id")
+ REFERENCES "mks_edm_equipment_categories" ("id")
+[0m
+ [1m[35m (2.7ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_71608df4d7"
+FOREIGN KEY ("checkin_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_2d751894b3"
+FOREIGN KEY ("checkout_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.8ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_b1bfab76fa"
+FOREIGN KEY ("prepared_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.9ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_4b617666f2"
+FOREIGN KEY ("checkin_to_id")
+ REFERENCES "mks_edm_equipment_locations" ("id")
+[0m
+ [1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_da85f112f1"
+FOREIGN KEY ("checkout_to_id")
+ REFERENCES "mks_edm_equipment_locations" ("id")
+[0m
+ [1m[35m (2.5ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_432c5d16fa"
+FOREIGN KEY ("service_provider_id")
+ REFERENCES "mks_edm_equipment_locations" ("id")
+[0m
+ [1m[35m (2.9ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_d5dda430d5"
+FOREIGN KEY ("maintenance_service_order_id")
+ REFERENCES "mks_maintenance_maintenance_service_orders" ("id")
+[0m
+ [1m[35m (3.1ms)[0m [1m[35mALTER TABLE "mks_maintenance_job_cards" ADD CONSTRAINT "fk_rails_14cf824cbc"
+FOREIGN KEY ("maintenance_status_id")
+ REFERENCES "mks_maintenance_maintenance_statuses" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_maintenance_maintenance_service_orders" ADD CONSTRAINT "fk_rails_e7f1fb2bae"
+FOREIGN KEY ("approved_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.8ms)[0m [1m[35mALTER TABLE "mks_maintenance_maintenance_service_orders" ADD CONSTRAINT "fk_rails_e104595312"
+FOREIGN KEY ("prepared_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (3.0ms)[0m [1m[35mALTER TABLE "mks_maintenance_maintenance_service_orders" ADD CONSTRAINT "fk_rails_3f3405378e"
+FOREIGN KEY ("equipment_item_id")
+ REFERENCES "mks_edm_equipment_items" ("id")
+[0m
+ [1m[35m (3.0ms)[0m [1m[35mALTER TABLE "mks_maintenance_maintenance_service_orders" ADD CONSTRAINT "fk_rails_744b2022f5"
+FOREIGN KEY ("maintenance_type_id")
+ REFERENCES "mks_maintenance_maintenance_types" ("id")
+[0m
+ [1m[35m (3.5ms)[0m [1m[35mALTER TABLE "mks_maintenance_maintenance_types" ADD CONSTRAINT "fk_rails_40e7db53d5"
+FOREIGN KEY ("maintenance_category_id")
+ REFERENCES "mks_maintenance_maintenance_categories" ("id")
+[0m
+ [1m[35m (3.0ms)[0m [1m[35mALTER TABLE "mks_maintenance_schedule_settings" ADD CONSTRAINT "fk_rails_6b4df17776"
+FOREIGN KEY ("equipment_id")
+ REFERENCES "mks_edm_equipments" ("id")
+[0m
+ [1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_maintenance_schedule_settings" ADD CONSTRAINT "fk_rails_eed98d8173"
+FOREIGN KEY ("maintenance_type_id")
+ REFERENCES "mks_maintenance_maintenance_types" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_maintenance_schedule_settings" ADD CONSTRAINT "fk_rails_07f79b50c2"
+FOREIGN KEY ("schedule_unit_id")
+ REFERENCES "mks_maintenance_schedule_units" ("id")
+[0m
+ [1m[35m (3.1ms)[0m [1m[35mALTER TABLE "mks_rate_chargeable_service_discounts" ADD CONSTRAINT "fk_rails_688682e0b5"
+FOREIGN KEY ("chargeable_service_id")
+ REFERENCES "mks_rate_chargeable_services" ("id")
+[0m
+ [1m[35m (2.9ms)[0m [1m[35mALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_4e0ff36276"
+FOREIGN KEY ("service_delivery_unit_id")
+ REFERENCES "mks_rate_service_delivery_units" ("id")
+[0m
+ [1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_c9195a9eb4"
+FOREIGN KEY ("service_type_id")
+ REFERENCES "mks_rate_service_types" ("id")
+[0m
+ [1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_323d899c02"
+FOREIGN KEY ("base_unit_id")
+ REFERENCES "mks_rate_unit_of_charges" ("id")
+[0m
+ [1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_a4bbde1129"
+FOREIGN KEY ("utilization_unit_id")
+ REFERENCES "mks_rate_unit_of_charges" ("id")
+[0m
+ [1m[35m (3.3ms)[0m [1m[35mALTER TABLE "mks_rate_rate_change_requests" ADD CONSTRAINT "fk_rails_1ec309ecbf"
+FOREIGN KEY ("approved_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.9ms)[0m [1m[35mALTER TABLE "mks_rate_rate_change_requests" ADD CONSTRAINT "fk_rails_c0525c8963"
+FOREIGN KEY ("created_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (2.7ms)[0m [1m[35mALTER TABLE "mks_rate_service_bundles" ADD CONSTRAINT "fk_rails_d6c823a60f"
+FOREIGN KEY ("service_delivery_unit_id")
+ REFERENCES "mks_rate_service_delivery_units" ("id")
+[0m
+ [1m[35m (2.7ms)[0m [1m[35mALTER TABLE "mks_rate_service_bundles_chargeable_services" ADD CONSTRAINT "fk_rails_520a0a95a5"
+FOREIGN KEY ("chargeable_service_id")
+ REFERENCES "mks_rate_chargeable_services" ("id")
+[0m
+ [1m[35m (2.2ms)[0m [1m[35mALTER TABLE "mks_rate_service_bundles_chargeable_services" ADD CONSTRAINT "fk_rails_cde2572db6"
+FOREIGN KEY ("service_bundle_id")
+ REFERENCES "mks_rate_service_bundles" ("id")
+[0m
+ [1m[35m (2.5ms)[0m [1m[35mALTER TABLE "mks_rate_service_rates" ADD CONSTRAINT "fk_rails_8f0c330d29"
+FOREIGN KEY ("equipment_item_id")
+ REFERENCES "mks_edm_equipment_items" ("id")
+[0m
+ [1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_rate_service_rates" ADD CONSTRAINT "fk_rails_a39cc6503a"
+FOREIGN KEY ("chargeable_service_id")
+ REFERENCES "mks_rate_chargeable_services" ("id")
+[0m
+ [1m[35m (3.5ms)[0m [1m[35mALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0"
+FOREIGN KEY ("prepared_by_id")
+ REFERENCES "mks_auth_users" ("id")
+[0m
+ [1m[35m (9.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
+ [1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ [1m[35m (2.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180401110018)[0m
+ [1m[35m (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
+(20171212165507),
+(20171213152154),
+(20171213152159),
+(20171214152030),
+(20171215092528),
+(20171218113530),
+(20171219134144),
+(20171220133826),
+(20171221110018);
+
+[0m
+ [1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
+ [1m[36mActiveRecord::InternalMetadata Create (1.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-09-05 19:27:37.437950"], ["updated_at", "2018-09-05 19:27:37.437950"]]
+ [1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
+ [1m[36mActiveRecord::InternalMetadata Update (1.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-09-05 19:27:37.448414"], ["key", "environment"]]
+ [1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m