DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21) DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21)  (8.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) SELECT pg_try_advisory_lock(861277768903666380)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.6ms) BEGIN  (6.7ms) CREATE 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) SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.3ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.5ms) BEGIN  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (1.9ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.6ms) BEGIN  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.2ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.5ms) BEGIN  (1.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (1.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.6ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.5ms) BEGIN  (7.0ms) CREATE 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)  (2.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (2.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.6ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.5ms) BEGIN  (3.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.6ms) CREATE 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")  (1.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 15:54:27.250770"], ["updated_at", "2017-12-04 15:54:27.250770"]]  (1.2ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(861277768903666380)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (153.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (1440.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.2ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.3ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (19.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (64.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 15:54:41.131533"], ["updated_at", "2017-12-04 15:54:41.131533"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.8ms) DROP DATABASE IF EXISTS "mks_auth_test"  (510.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 15:54:54.381825"], ["updated_at", "2017-12-04 15:54:54.381825"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (110.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (537.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 15:58:09.957554"], ["updated_at", "2017-12-04 15:58:09.957554"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN  (0.5ms) COMMIT DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21)  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (530.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.2ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.7ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.9ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:00:23.388463"], ["updated_at", "2017-12-04 16:00:23.388463"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from at /Users/henock/projects/rails/construction/mks_auth/spec/dummy/config/initializers/new_framework_defaults.rb:21)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (485.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (4.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:08:02.817781"], ["updated_at", "2017-12-04 16:08:02.817781"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (444.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.2ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.2ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.9ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:08:34.179977"], ["updated_at", "2017-12-04 16:08:34.179977"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (520.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.8ms) CREATE 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)  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:13:55.839074"], ["updated_at", "2017-12-04 16:13:55.839074"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.6ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (511.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE 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)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:23:33.607783"], ["updated_at", "2017-12-04 16:23:33.607783"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (498.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (10.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:24:01.924613"], ["updated_at", "2017-12-04 16:24:01.924613"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.7ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (475.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.2ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:29:41.714749"], ["updated_at", "2017-12-04 16:29:41.714749"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (513.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.6ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.9ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:32:31.312978"], ["updated_at", "2017-12-04 16:32:31.312978"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.0ms) BEGIN  (0.5ms) COMMIT  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.8ms) DROP DATABASE IF EXISTS "mks_auth_test"  (530.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.1ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:34:50.093046"], ["updated_at", "2017-12-04 16:34:50.093046"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (453.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.1ms) CREATE 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)  (4.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.9ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:34:59.706907"], ["updated_at", "2017-12-04 16:34:59.706907"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (485.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.4ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:35:28.882896"], ["updated_at", "2017-12-04 16:35:28.882896"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (484.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:36:15.532533"], ["updated_at", "2017-12-04 16:36:15.532533"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (472.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.9ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:39:02.938965"], ["updated_at", "2017-12-04 16:39:02.938965"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (474.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (3.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.6ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:43:15.271198"], ["updated_at", "2017-12-04 16:43:15.271198"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (452.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.7ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:43:42.374618"], ["updated_at", "2017-12-04 16:43:42.374618"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (215.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (453.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.5ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.9ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:44:37.652917"], ["updated_at", "2017-12-04 16:44:37.652917"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (519.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.9ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.0ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:46:23.084163"], ["updated_at", "2017-12-04 16:46:23.084163"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (501.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.9ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:47:47.765775"], ["updated_at", "2017-12-04 16:47:47.765775"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (522.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.1ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.1ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:48:04.243259"], ["updated_at", "2017-12-04 16:48:04.243259"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.8ms) DROP DATABASE IF EXISTS "mks_auth_test"  (482.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (4.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (3.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.9ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (17.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (14.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-04 16:49:02.899137"], ["updated_at", "2017-12-04 16:49:02.899137"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (452.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.9ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:43:13.206851"], ["updated_at", "2017-12-08 11:43:13.206851"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (466.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (4.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:44:34.720509"], ["updated_at", "2017-12-08 11:44:34.720509"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1851.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (479.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.1ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:45:05.246101"], ["updated_at", "2017-12-08 11:45:05.246101"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (494.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:47:39.281900"], ["updated_at", "2017-12-08 11:47:39.281900"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (556.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.5ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:48:57.820772"], ["updated_at", "2017-12-08 11:48:57.820772"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (442.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.9ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.1ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:49:53.948034"], ["updated_at", "2017-12-08 11:49:53.948034"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (494.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (9.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (8.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:51:23.137608"], ["updated_at", "2017-12-08 11:51:23.137608"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (446.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (8.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (14.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:53:03.378663"], ["updated_at", "2017-12-08 11:53:03.378663"]]  (10.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (466.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:54:24.612371"], ["updated_at", "2017-12-08 11:54:24.612371"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (460.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (15.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 11:54:57.533599"], ["updated_at", "2017-12-08 11:54:57.533599"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (486.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 12:54:09.271952"], ["updated_at", "2017-12-08 12:54:09.271952"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (443.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.1ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 13:12:55.570967"], ["updated_at", "2017-12-08 13:12:55.570967"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (469.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.3ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (5.9ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.1ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (13.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:08:45.025227"], ["updated_at", "2017-12-08 18:08:45.025227"]]  (9.0ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (499.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:12:40.378240"], ["updated_at", "2017-12-08 18:12:40.378240"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (473.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:13:35.498006"], ["updated_at", "2017-12-08 18:13:35.498006"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (441.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (3.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:16:12.551758"], ["updated_at", "2017-12-08 18:16:12.551758"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (440.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (15.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:18:02.617817"], ["updated_at", "2017-12-08 18:18:02.617817"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (497.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (11.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (17.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:21:22.941420"], ["updated_at", "2017-12-08 18:21:22.941420"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (432.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.8ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:22:01.470223"], ["updated_at", "2017-12-08 18:22:01.470223"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (454.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:23:29.559937"], ["updated_at", "2017-12-08 18:23:29.559937"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (136.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (995.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (19.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (98.5ms) CREATE 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)  (9.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (10.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (18.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (29.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:24:10.404609"], ["updated_at", "2017-12-08 18:24:10.404609"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (468.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.1ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.1ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-08 18:28:21.332096"], ["updated_at", "2017-12-08 18:28:21.332096"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (538.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.6ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (3.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (16.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 03:58:14.422526"], ["updated_at", "2017-12-09 03:58:14.422526"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (452.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.9ms) CREATE 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)  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 03:59:38.475065"], ["updated_at", "2017-12-09 03:59:38.475065"]]  (13.9ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (473.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.3ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (5.9ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:00:38.604511"], ["updated_at", "2017-12-09 04:00:38.604511"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (527.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:26:33.486321"], ["updated_at", "2017-12-09 04:26:33.486321"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (429.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.2ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (14.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:28:51.571075"], ["updated_at", "2017-12-09 04:28:51.571075"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (352.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (451.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:29:22.738539"], ["updated_at", "2017-12-09 04:29:22.738539"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (110.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (513.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.7ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.2ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (3.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (4.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (21.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (19.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:30:48.065024"], ["updated_at", "2017-12-09 04:30:48.065024"]]  (2.3ms) COMMIT ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.1ms) BEGIN  (1.0ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (489.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:31:19.425653"], ["updated_at", "2017-12-09 04:31:19.425653"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.8ms) DROP DATABASE IF EXISTS "mks_auth_test"  (495.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.2ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.5ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:32:34.576035"], ["updated_at", "2017-12-09 04:32:34.576035"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (455.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.1ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:35:15.433083"], ["updated_at", "2017-12-09 04:35:15.433083"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (461.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.1ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (12.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:35:34.602516"], ["updated_at", "2017-12-09 04:35:34.602516"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (451.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:36:09.149743"], ["updated_at", "2017-12-09 04:36:09.149743"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (498.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:46:54.034399"], ["updated_at", "2017-12-09 04:46:54.034399"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (489.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:47:51.663622"], ["updated_at", "2017-12-09 04:47:51.663622"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (468.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.1ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:57:10.521021"], ["updated_at", "2017-12-09 04:57:10.521021"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (450.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:58:54.516835"], ["updated_at", "2017-12-09 04:58:54.516835"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.6ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (492.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 04:59:40.504211"], ["updated_at", "2017-12-09 04:59:40.504211"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (454.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.8ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (4.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 05:03:52.126048"], ["updated_at", "2017-12-09 05:03:52.126048"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (688.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (12.4ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (23.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (13.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 05:04:09.959830"], ["updated_at", "2017-12-09 05:04:09.959830"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (264.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (427.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.2ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 05:04:50.415765"], ["updated_at", "2017-12-09 05:04:50.415765"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (479.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.0ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_user_roles" ("id" serial NOT NULL PRIMARY KEY, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-09 05:05:55.360857"], ["updated_at", "2017-12-09 05:05:55.360857"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.4ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT pg_try_advisory_lock(861277768903666380)  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksMenusUserRoles (20161029074023)  (0.5ms) BEGIN  (1.3ms) ALTER TABLE "mks_auth_menus_user_roles" DROP CONSTRAINT "fk_rails_c24fca59c0"  (1.0ms) ALTER TABLE "mks_auth_menus_user_roles" DROP CONSTRAINT "fk_rails_1807c05e36"  (0.6ms) DROP INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id"  (1.1ms) DROP TABLE "mks_auth_menus_user_roles" SQL (0.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161029074023"]]  (2.0ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.5ms) BEGIN  (1.0ms) ALTER TABLE "mks_auth_menus" DROP CONSTRAINT "fk_rails_e5dd25fcb5"  (0.9ms) ALTER TABLE "mks_auth_menus" DROP CONSTRAINT "fk_rails_826b2757bc"  (1.2ms) DROP TABLE "mks_auth_menus" SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161029072256"]]  (2.2ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.6ms) BEGIN  (1.8ms) ALTER TABLE "mks_auth_users_user_roles" DROP CONSTRAINT "fk_rails_3dae904cd8"  (1.0ms) ALTER TABLE "mks_auth_users_user_roles" DROP CONSTRAINT "fk_rails_7cc19890aa"  (0.5ms) DROP INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id"  (0.7ms) DROP TABLE "mks_auth_users_user_roles" SQL (0.6ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161029071047"]]  (1.5ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.5ms) BEGIN  (1.2ms) DROP TABLE "mks_auth_user_roles" SQL (0.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161029070807"]]  (1.5ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.5ms) BEGIN  (1.0ms) ALTER TABLE "mks_auth_users" DROP CONSTRAINT "fk_rails_f959d07fb8"  (1.2ms) DROP TABLE "mks_auth_users" SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161029065959"]]  (1.6ms) COMMIT Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.5ms) BEGIN  (1.2ms) DROP TABLE "mks_auth_application_modules" SQL (1.0ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161029065810"]]  (2.2ms) COMMIT  (0.8ms) SELECT pg_advisory_unlock(861277768903666380)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT pg_try_advisory_lock(861277768903666380)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.6ms) BEGIN  (6.2ms) CREATE 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) SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (2.1ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.5ms) BEGIN  (5.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (1.6ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (1.6ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.5ms) BEGIN  (6.4ms) CREATE 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)  (2.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (1.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.4ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.6ms) BEGIN  (0.9ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.7ms) CREATE 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")  (1.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.5ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.5ms) BEGIN  (5.9ms) CREATE 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)  (2.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.4ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.5ms) BEGIN  (3.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.5ms) CREATE 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")  (1.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.6ms) COMMIT  (0.7ms) SELECT pg_advisory_unlock(861277768903666380)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (508.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (13.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:18:42.394853"], ["updated_at", "2017-12-10 04:18:42.394853"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN  (0.7ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (525.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (5.9ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.0ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:19:23.231755"], ["updated_at", "2017-12-10 04:19:23.231755"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (425.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.0ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:20:12.585268"], ["updated_at", "2017-12-10 04:20:12.585268"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.8ms) DROP DATABASE IF EXISTS "mks_auth_test"  (456.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:22:13.649873"], ["updated_at", "2017-12-10 04:22:13.649873"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (489.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:24:31.327074"], ["updated_at", "2017-12-10 04:24:31.327074"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (462.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (8.5ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (12.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (9.6ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (5.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (10.8ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (6.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (32.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (9.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:27:52.504499"], ["updated_at", "2017-12-10 04:27:52.504499"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (463.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (14.4ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.1ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.3ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (9.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:28:37.509185"], ["updated_at", "2017-12-10 04:28:37.509185"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1649.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (680.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (81.5ms) CREATE 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)  (4.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (15.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (23.2ms) CREATE 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)  (5.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (14.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:30:05.417046"], ["updated_at", "2017-12-10 04:30:05.417046"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.1ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (413.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:34:26.790180"], ["updated_at", "2017-12-10 04:34:26.790180"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.4ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (463.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:35:02.713833"], ["updated_at", "2017-12-10 04:35:02.713833"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (459.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:35:29.134895"], ["updated_at", "2017-12-10 04:35:29.134895"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN  (0.9ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (519.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.0ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:36:29.158253"], ["updated_at", "2017-12-10 04:36:29.158253"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (515.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:36:52.049785"], ["updated_at", "2017-12-10 04:36:52.049785"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (496.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 04:37:04.498670"], ["updated_at", "2017-12-10 04:37:04.498670"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (580.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (4.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (5.9ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:04:03.600225"], ["updated_at", "2017-12-10 05:04:03.600225"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (537.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (12.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (22.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:05:11.583948"], ["updated_at", "2017-12-10 05:05:11.583948"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (482.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.8ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:05:37.160898"], ["updated_at", "2017-12-10 05:05:37.160898"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.8ms) DROP DATABASE IF EXISTS "mks_auth_test"  (518.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (5.8ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:13:12.954175"], ["updated_at", "2017-12-10 05:13:12.954175"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (467.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (4.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.1ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.7ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:14:00.140392"], ["updated_at", "2017-12-10 05:14:00.140392"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (491.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.7ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:16:33.443457"], ["updated_at", "2017-12-10 05:16:33.443457"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (118.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (461.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (12.1ms) CREATE 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)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (9.4ms) CREATE 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)  (4.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.2ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (5.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (4.2ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (8.3ms) CREATE 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)  (4.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (6.1ms) CREATE 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")  (53.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (57.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (76.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (68.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (4.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (17.7ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (8.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (5.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (30.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (22.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:18:14.316045"], ["updated_at", "2017-12-10 05:18:14.316045"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.6ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.5ms) DROP DATABASE IF EXISTS "mks_auth_test"  (442.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE 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)  (4.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (15.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (9.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:20:55.740671"], ["updated_at", "2017-12-10 05:20:55.740671"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (500.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (5.8ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:21:35.923888"], ["updated_at", "2017-12-10 05:21:35.923888"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (109.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (455.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (14.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:24:20.458350"], ["updated_at", "2017-12-10 05:24:20.458350"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (475.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:25:59.461249"], ["updated_at", "2017-12-10 05:25:59.461249"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.7ms) DROP DATABASE IF EXISTS "mks_auth_test"  (514.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:27:39.662147"], ["updated_at", "2017-12-10 05:27:39.662147"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (461.1ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 05:31:11.457928"], ["updated_at", "2017-12-10 05:31:11.457928"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (510.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (8.0ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (59.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:31:25.771000"], ["updated_at", "2017-12-10 07:31:25.771000"]]  (15.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.1ms) BEGIN  (0.7ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (445.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:33:02.609360"], ["updated_at", "2017-12-10 07:33:02.609360"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (438.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.2ms) CREATE 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)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (16.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:34:18.404852"], ["updated_at", "2017-12-10 07:34:18.404852"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (427.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:35:49.251221"], ["updated_at", "2017-12-10 07:35:49.251221"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (486.6ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (9.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:41:12.131232"], ["updated_at", "2017-12-10 07:41:12.131232"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (461.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (13.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:42:27.673194"], ["updated_at", "2017-12-10 07:42:27.673194"]]  (1.7ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.3ms) DROP DATABASE IF EXISTS "mks_auth_test"  (485.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:42:34.367427"], ["updated_at", "2017-12-10 07:42:34.367427"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (438.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (8.4ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (8.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:42:54.062484"], ["updated_at", "2017-12-10 07:42:54.062484"]]  (1.7ms) COMMIT ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (479.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.0ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.5ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:45:13.301480"], ["updated_at", "2017-12-10 07:45:13.301480"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (500.0ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:45:43.088538"], ["updated_at", "2017-12-10 07:45:43.088538"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.4ms) DROP DATABASE IF EXISTS "mks_auth_test"  (466.8ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.3ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:46:03.738192"], ["updated_at", "2017-12-10 07:46:03.738192"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (450.7ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (8.6ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:46:21.370946"], ["updated_at", "2017-12-10 07:46:21.370946"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (461.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (16.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:49:55.699868"], ["updated_at", "2017-12-10 07:49:55.699868"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.4ms) BEGIN  (0.4ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (116.0ms) DROP DATABASE IF EXISTS "mks_auth_test"  (456.3ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (17.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-10 07:52:00.429493"], ["updated_at", "2017-12-10 07:52:00.429493"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.2ms) DROP DATABASE IF EXISTS "mks_auth_test"  (448.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.4ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (20.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 12:01:11.538822"], ["updated_at", "2017-12-11 12:01:11.538822"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN  (0.8ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (551.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.0ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 12:02:10.035006"], ["updated_at", "2017-12-11 12:02:10.035006"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN  (0.6ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (468.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.6ms) CREATE 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)  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (5.6ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (33.3ms) CREATE 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)  (31.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (9.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (45.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 12:03:27.428564"], ["updated_at", "2017-12-11 12:03:27.428564"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (112.6ms) DROP DATABASE IF EXISTS "mks_auth_test"  (606.5ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.0ms) CREATE 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)  (4.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.0ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 12:06:45.780315"], ["updated_at", "2017-12-11 12:06:45.780315"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (115.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (532.4ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.4ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 12:10:02.546835"], ["updated_at", "2017-12-11 12:10:02.546835"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.1ms) DROP DATABASE IF EXISTS "mks_auth_test"  (542.2ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.2ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.8ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.7ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (7.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 13:48:21.850882"], ["updated_at", "2017-12-11 13:48:21.850882"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.1ms) BEGIN  (0.8ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.9ms) DROP DATABASE IF EXISTS "mks_auth_test"  (509.9ms) CREATE DATABASE "mks_auth_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.9ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.3ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (28.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029074023)  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256);   (6.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-12-11 13:52:58.597745"], ["updated_at", "2017-12-11 13:52:58.597745"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.5ms) SELECT pg_try_advisory_lock(5702692353434200530)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (1.5ms) BEGIN  (10.7ms) CREATE 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) SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (2.8ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (1.1ms) BEGIN  (10.4ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (21.8ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (2.0ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.7ms) BEGIN  (8.8ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (1.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.6ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.6ms) BEGIN  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.4ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.5ms) BEGIN  (7.0ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.9ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.7ms) BEGIN  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.8ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.1ms) BEGIN  (0.7ms) COMMIT  (1.3ms) SELECT pg_advisory_unlock(5702692353434200530)  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (3.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (3.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.9ms) DROP DATABASE IF EXISTS "construction_test"  (313.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 11:20:32.336887"], ["updated_at", "2018-02-01 11:20:32.336887"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN  (0.6ms) COMMIT  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (119.4ms) DROP DATABASE IF EXISTS "construction_test"  (313.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 11:33:03.329804"], ["updated_at", "2018-02-01 11:33:03.329804"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (117.8ms) DROP DATABASE IF EXISTS "construction_test"  (324.5ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.4ms) CREATE 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)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.1ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 11:38:05.726920"], ["updated_at", "2018-02-01 11:38:05.726920"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN  (0.6ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (120.2ms) DROP DATABASE IF EXISTS "construction_test"  (314.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (5.8ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.0ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (2.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (1.9ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 11:38:47.537527"], ["updated_at", "2018-02-01 11:38:47.537527"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (119.9ms) DROP DATABASE IF EXISTS "construction_test"  (310.7ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (2.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (5.9ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.0ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 11:40:31.580809"], ["updated_at", "2018-02-01 11:40:31.580809"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.4ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (118.1ms) DROP DATABASE IF EXISTS "construction_test"  (319.8ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 11:59:06.873964"], ["updated_at", "2018-02-01 11:59:06.873964"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (124.0ms) DROP DATABASE IF EXISTS "construction_test"  (316.4ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.2ms) CREATE 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (5.9ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.0ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:02:43.320760"], ["updated_at", "2018-02-01 12:02:43.320760"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (123.8ms) DROP DATABASE IF EXISTS "construction_test"  (324.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.6ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:03:18.746698"], ["updated_at", "2018-02-01 12:03:18.746698"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.7ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (123.4ms) DROP DATABASE IF EXISTS "construction_test"  (306.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.8ms) CREATE 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)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.7ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.1ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:06:39.633445"], ["updated_at", "2018-02-01 12:06:39.633445"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.9ms) DROP DATABASE IF EXISTS "construction_test"  (323.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:45:08.826429"], ["updated_at", "2018-02-01 12:45:08.826429"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (118.9ms) DROP DATABASE IF EXISTS "construction_test"  (316.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (5.8ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (5.8ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.1ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.4ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.1ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:46:09.993421"], ["updated_at", "2018-02-01 12:46:09.993421"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (118.5ms) DROP DATABASE IF EXISTS "construction_test"  (321.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:47:51.472885"], ["updated_at", "2018-02-01 12:47:51.472885"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.6ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (124.7ms) DROP DATABASE IF EXISTS "construction_test"  (320.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (8.7ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.1ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-01 12:53:56.383254"], ["updated_at", "2018-02-01 12:53:56.383254"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.7ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.7ms) BEGIN  (6.9ms) CREATE 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) SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.9ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.5ms) BEGIN  (7.2ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (3.0ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (2.1ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.9ms) BEGIN  (6.0ms) CREATE 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)  (3.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.6ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.7ms) BEGIN  (1.2ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.6ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.6ms) BEGIN  (6.8ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (2.8ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.7ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (1.0ms) BEGIN  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.7ms) COMMIT Migrating to AdjustAuthModels (20180201104912)  (0.7ms) BEGIN  (1.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (2.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (1.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.7ms) ALTER TABLE "mks_auth_users" DROP "application_module_id" SQL (3.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (2.2ms) COMMIT ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.0ms) BEGIN  (0.7ms) COMMIT  (1.0ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (8.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.8ms) BEGIN  (6.4ms) CREATE 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) SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.4ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.6ms) BEGIN  (5.7ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (3.5ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (2.3ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.8ms) BEGIN  (7.4ms) CREATE 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)  (2.8ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (1.8ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.7ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.7ms) BEGIN  (1.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (2.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.6ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.7ms) BEGIN  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (2.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (3.4ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (1.1ms) BEGIN  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.6ms) CREATE 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")  (1.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT Migrating to AdjustAuthModels (20180201104912)  (0.6ms) BEGIN  (2.0ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.0ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (2.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.6ms) ALTER TABLE "mks_auth_users" DROP "application_module_id" SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (2.9ms) COMMIT ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-04 15:46:27.057181"], ["updated_at", "2018-02-04 15:46:27.057181"]]  (1.3ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (120.6ms) DROP DATABASE IF EXISTS "construction_test"  (338.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.2ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.6ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.6ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-04 15:51:03.702238"], ["updated_at", "2018-02-04 15:51:03.702238"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (9.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.8ms) BEGIN  (6.7ms) CREATE 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) SQL (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.2ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.6ms) BEGIN  (5.6ms) CREATE 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 't' NOT NULL, "application_module_id" integer, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_mks_auth_users_on_application_module_id" ON "mks_auth_users" ("application_module_id")  (2.4ms) ALTER TABLE "mks_auth_users" ADD CONSTRAINT "fk_rails_f959d07fb8" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (11.5ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (1.4ms) BEGIN  (5.8ms) CREATE 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)  (2.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (1.6ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.6ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.5ms) BEGIN  (0.9ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.8ms) CREATE 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")  (1.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.3ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.6ms) BEGIN  (6.7ms) CREATE 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)  (2.6ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.6ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.6ms) BEGIN  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.6ms) CREATE 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")  (1.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT Migrating to AdjustAuthModels (20180201104912)  (0.7ms) BEGIN  (1.4ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.1ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (1.5ms) ALTER TABLE "mks_auth_users" DROP "application_module_id" SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (1.9ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-05 15:13:08.023960"], ["updated_at", "2018-02-05 15:13:08.023960"]]  (1.3ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT pg_try_advisory_lock(8683284875916872550)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN  (0.7ms) COMMIT  (0.9ms) SELECT pg_advisory_unlock(8683284875916872550)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT pg_try_advisory_lock(8683284875916872550)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to AdjustAuthModels (20180201104912)  (0.6ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.6ms) BEGIN  (6.1ms) CREATE 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) SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.5ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.6ms) BEGIN  (5.1ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (1.4ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.6ms) BEGIN  (5.5ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (2.0ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.8ms) BEGIN  (0.9ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.6ms) CREATE 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")  (1.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.5ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.5ms) BEGIN  (5.4ms) CREATE 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)  (2.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.6ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.6ms) BEGIN  (3.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.7ms) CREATE 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")  (1.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT Migrating to CreateMksAuthUsersApplicationModules (20180201104912)  (0.9ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.5ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksUsersApplicationModules (20180201104912)  (0.6ms) BEGIN  (1.4ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (10.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-05 15:26:55.402739"], ["updated_at", "2018-02-05 15:26:55.402739"]]  (1.2ms) COMMIT  (0.5ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (119.2ms) DROP DATABASE IF EXISTS "construction_test"  (330.2ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (2.9ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-02-05 15:27:02.019248"], ["updated_at", "2018-02-05 15:27:02.019248"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.6ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.7ms) BEGIN  (8.7ms) CREATE 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) SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (2.0ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.9ms) BEGIN  (8.6ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (3.0ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.9ms) BEGIN  (6.9ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (3.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.7ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.8ms) BEGIN  (1.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (1.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (2.1ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.6ms) BEGIN  (6.3ms) CREATE 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)  (2.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (2.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.7ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (1.2ms) BEGIN  (4.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.9ms) CREATE 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")  (1.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT Migrating to CreateMksUsersApplicationModules (20180201104912)  (0.9ms) BEGIN  (1.3ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (2.8ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (1.9ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (1.8ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN  (0.6ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN  (0.6ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (19.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (11.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) SELECT pg_try_advisory_lock(8683284875916872550)  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.7ms) BEGIN  (6.5ms) CREATE 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) SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.5ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.7ms) BEGIN  (6.3ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (1.4ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.5ms) BEGIN  (6.5ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.7ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.6ms) BEGIN  (1.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (1.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.5ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.6ms) BEGIN  (6.4ms) CREATE 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)  (2.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.9ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.5ms) BEGIN  (7.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (2.7ms) CREATE 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")  (1.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT Migrating to CreateMksUsersApplicationModules (20180201104912)  (0.6ms) BEGIN  (1.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-03-02 14:17:37.940449"], ["updated_at", "2018-03-02 14:17:37.940449"]]  (1.3ms) COMMIT  (0.5ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.7ms) BEGIN  (14.2ms) CREATE 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) SQL (2.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.8ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.6ms) BEGIN  (12.0ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (3.3ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (0.9ms) BEGIN  (17.5ms) CREATE 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)  (6.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (2.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.6ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.6ms) BEGIN  (1.1ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (8.1ms) CREATE 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")  (1.8ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (1.5ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (0.7ms) BEGIN  (15.0ms) CREATE 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)  (4.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (2.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (1.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (1.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (1.6ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (0.5ms) BEGIN  (5.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (7.6ms) CREATE 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")  (1.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.6ms) COMMIT Migrating to CreateMksUsersApplicationModules (20180201104912)  (0.9ms) BEGIN  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (6.8ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (1.9ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (3.8ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (5.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-03-06 14:39:59.726244"], ["updated_at", "2018-03-06 14:39:59.726244"]]  (1.6ms) COMMIT  (0.7ms) SELECT pg_advisory_unlock(8683284875916872550)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (463.3ms) DROP DATABASE IF EXISTS "construction_test"  (441.5ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (28.7ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (15.1ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (10.0ms) CREATE 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)  (4.8ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (10.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (5.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rate_chargeable_service_discounts" CASCADE  (6.6ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rate_chargeable_services" CASCADE  (6.7ms) CREATE 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)  (3.6ms) CREATE INDEX "bu_on_cs_indx" ON "mks_rate_chargeable_services" ("base_unit_id")  (4.8ms) CREATE INDEX "sdu_on_cs_indx" ON "mks_rate_chargeable_services" ("service_delivery_unit_id")  (4.9ms) CREATE INDEX "st_on_cs_indx" ON "mks_rate_chargeable_services" ("service_type_id")  (5.4ms) CREATE INDEX "uu_on_cs_indx" ON "mks_rate_chargeable_services" ("utilization_unit_id")  (0.5ms) DROP TABLE IF EXISTS "mks_rate_service_delivery_units" CASCADE  (14.1ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rate_service_types" CASCADE  (10.0ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rate_unit_of_charges" CASCADE  (11.0ms) CREATE 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)  (7.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (4.1ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (4.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.7ms) ALTER TABLE "mks_rate_chargeable_service_discounts" ADD CONSTRAINT "fk_rails_688682e0b5" FOREIGN KEY ("chargeable_service_id") REFERENCES "mks_rate_chargeable_services" ("id")   (2.5ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_4e0ff36276" FOREIGN KEY ("service_delivery_unit_id") REFERENCES "mks_rate_service_delivery_units" ("id")   (2.6ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_c9195a9eb4" FOREIGN KEY ("service_type_id") REFERENCES "mks_rate_service_types" ("id")   (2.4ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_323d899c02" FOREIGN KEY ("base_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (2.7ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_a4bbde1129" FOREIGN KEY ("utilization_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-03-12 11:36:07.202306"], ["updated_at", "2018-03-12 11:36:07.202306"]]  (1.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-03-12 11:36:07.210152"], ["key", "environment"]]  (1.3ms) COMMIT  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (125.5ms) DROP DATABASE IF EXISTS "construction_test"  (349.9ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (21.1ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (8.8ms) CREATE 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)  (6.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (8.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (5.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (10.5ms) CREATE 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)  (6.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.7ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (5.7ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (1.0ms) DROP TABLE IF EXISTS "mks_rate_chargeable_service_discounts" CASCADE  (12.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rate_chargeable_services" CASCADE  (8.2ms) CREATE 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)  (3.2ms) CREATE INDEX "bu_on_cs_indx" ON "mks_rate_chargeable_services" ("base_unit_id")  (3.4ms) CREATE INDEX "sdu_on_cs_indx" ON "mks_rate_chargeable_services" ("service_delivery_unit_id")  (5.4ms) CREATE INDEX "st_on_cs_indx" ON "mks_rate_chargeable_services" ("service_type_id")  (7.4ms) CREATE INDEX "uu_on_cs_indx" ON "mks_rate_chargeable_services" ("utilization_unit_id")  (0.7ms) DROP TABLE IF EXISTS "mks_rate_service_delivery_units" CASCADE  (10.8ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rate_service_types" CASCADE  (8.4ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rate_unit_of_charges" CASCADE  (10.2ms) CREATE 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)  (3.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (4.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (6.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (5.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (4.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.8ms) ALTER TABLE "mks_rate_chargeable_service_discounts" ADD CONSTRAINT "fk_rails_688682e0b5" FOREIGN KEY ("chargeable_service_id") REFERENCES "mks_rate_chargeable_services" ("id")   (2.5ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_4e0ff36276" FOREIGN KEY ("service_delivery_unit_id") REFERENCES "mks_rate_service_delivery_units" ("id")   (2.4ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_c9195a9eb4" FOREIGN KEY ("service_type_id") REFERENCES "mks_rate_service_types" ("id")   (4.0ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_323d899c02" FOREIGN KEY ("base_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (2.7ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_a4bbde1129" FOREIGN KEY ("utilization_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-03-12 11:40:53.956597"], ["updated_at", "2018-03-12 11:40:53.956597"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-03-12 11:40:53.964512"], ["key", "environment"]]  (1.7ms) COMMIT  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (119.4ms) DROP DATABASE IF EXISTS "construction_test"  (350.8ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (20.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (14.2ms) CREATE 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)  (5.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (8.4ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (11.5ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.3ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (12.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (3.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.0ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rate_chargeable_service_discounts" CASCADE  (6.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rate_chargeable_services" CASCADE  (10.0ms) CREATE 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)  (7.3ms) CREATE INDEX "bu_on_cs_indx" ON "mks_rate_chargeable_services" ("base_unit_id")  (5.3ms) CREATE INDEX "sdu_on_cs_indx" ON "mks_rate_chargeable_services" ("service_delivery_unit_id")  (3.3ms) CREATE INDEX "st_on_cs_indx" ON "mks_rate_chargeable_services" ("service_type_id")  (3.3ms) CREATE INDEX "uu_on_cs_indx" ON "mks_rate_chargeable_services" ("utilization_unit_id")  (0.6ms) DROP TABLE IF EXISTS "mks_rate_service_delivery_units" CASCADE  (9.0ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rate_service_types" CASCADE  (10.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rate_unit_of_charges" CASCADE  (10.4ms) CREATE 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)  (5.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.6ms) ALTER TABLE "mks_rate_chargeable_service_discounts" ADD CONSTRAINT "fk_rails_688682e0b5" FOREIGN KEY ("chargeable_service_id") REFERENCES "mks_rate_chargeable_services" ("id")   (3.1ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_4e0ff36276" FOREIGN KEY ("service_delivery_unit_id") REFERENCES "mks_rate_service_delivery_units" ("id")   (2.6ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_c9195a9eb4" FOREIGN KEY ("service_type_id") REFERENCES "mks_rate_service_types" ("id")   (2.5ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_323d899c02" FOREIGN KEY ("base_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (2.4ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_a4bbde1129" FOREIGN KEY ("utilization_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (12.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-03-12 11:41:05.321649"], ["updated_at", "2018-03-12 11:41:05.321649"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-03-12 11:41:05.329558"], ["key", "environment"]]  (1.7ms) COMMIT  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (123.0ms) DROP DATABASE IF EXISTS "construction_test"  (372.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (23.6ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (14.2ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (13.2ms) CREATE 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)  (3.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (20.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (4.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (5.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (8.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rate_chargeable_service_discounts" CASCADE  (12.8ms) CREATE 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)  (0.8ms) DROP TABLE IF EXISTS "mks_rate_chargeable_services" CASCADE  (17.7ms) CREATE 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)  (7.0ms) CREATE INDEX "bu_on_cs_indx" ON "mks_rate_chargeable_services" ("base_unit_id")  (3.3ms) CREATE INDEX "sdu_on_cs_indx" ON "mks_rate_chargeable_services" ("service_delivery_unit_id")  (4.6ms) CREATE INDEX "st_on_cs_indx" ON "mks_rate_chargeable_services" ("service_type_id")  (7.7ms) CREATE INDEX "uu_on_cs_indx" ON "mks_rate_chargeable_services" ("utilization_unit_id")  (0.6ms) DROP TABLE IF EXISTS "mks_rate_service_delivery_units" CASCADE  (7.5ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rate_service_types" CASCADE  (9.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rate_unit_of_charges" CASCADE  (12.9ms) CREATE 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)  (3.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (3.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (4.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (5.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.8ms) ALTER TABLE "mks_rate_chargeable_service_discounts" ADD CONSTRAINT "fk_rails_688682e0b5" FOREIGN KEY ("chargeable_service_id") REFERENCES "mks_rate_chargeable_services" ("id")   (2.6ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_4e0ff36276" FOREIGN KEY ("service_delivery_unit_id") REFERENCES "mks_rate_service_delivery_units" ("id")   (2.6ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_c9195a9eb4" FOREIGN KEY ("service_type_id") REFERENCES "mks_rate_service_types" ("id")   (2.6ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_323d899c02" FOREIGN KEY ("base_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (2.8ms) ALTER TABLE "mks_rate_chargeable_services" ADD CONSTRAINT "fk_rails_a4bbde1129" FOREIGN KEY ("utilization_unit_id") REFERENCES "mks_rate_unit_of_charges" ("id")   (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (10.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-03-12 14:37:50.169834"], ["updated_at", "2018-03-12 14:37:50.169834"]]  (2.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-03-12 14:37:50.179038"], ["key", "environment"]]  (1.4ms) COMMIT  (0.7ms) SELECT pg_try_advisory_lock(8683284875916872550)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateMksAuthApplicationModules (20161029065810)  (0.9ms) BEGIN  (16.3ms) CREATE 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) SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065810"]]  (1.5ms) COMMIT Migrating to CreateMksAuthUsers (20161029065959)  (0.6ms) BEGIN  (5.4ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029065959"]]  (1.6ms) COMMIT Migrating to CreateMksAuthUserRoles (20161029070807)  (1.2ms) BEGIN  (5.8ms) CREATE 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)  (2.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (2.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029070807"]]  (1.7ms) COMMIT Migrating to CreateMksUsersUserRoles (20161029071047)  (0.7ms) BEGIN  (1.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (2.5ms) CREATE 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")  (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029071047"]]  (2.2ms) COMMIT Migrating to CreateMksAuthMenus (20161029072256)  (1.3ms) BEGIN  (9.2ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029072256"]]  (2.3ms) COMMIT Migrating to CreateMksMenusUserRoles (20161029074023)  (1.0ms) BEGIN  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (1.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (1.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161029074023"]]  (1.5ms) COMMIT Migrating to CreateMksUsersApplicationModules (20180201104912)  (1.0ms) BEGIN  (1.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (2.5ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (1.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (1.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20180201104912"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-01 10:03:25.804589"], ["updated_at", "2018-04-01 10:03:25.804589"]]  (1.1ms) COMMIT  (0.6ms) SELECT pg_advisory_unlock(8683284875916872550)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (124.4ms) DROP DATABASE IF EXISTS "construction_test"  (584.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.1ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (13.7ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.1ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.9ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.3ms) CREATE 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)  (4.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.9ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.6ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.0ms) CREATE 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")  (4.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (3.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:38:50.094511"], ["updated_at", "2018-04-02 03:38:50.094511"]]  (1.7ms) COMMIT ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN SQL (1.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:38:50.106471"], ["key", "environment"]]  (1.8ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (144.4ms) DROP DATABASE IF EXISTS "construction_test"  (347.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.1ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (16.2ms) CREATE 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)  (1.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (14.9ms) CREATE 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)  (8.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (6.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (15.0ms) CREATE 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")  (2.9ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (27.0ms) CREATE 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)  (5.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (9.9ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (3.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.0ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.0ms) BEGIN SQL (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:39:06.613353"], ["updated_at", "2018-04-02 03:39:06.613353"]]  (2.0ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:39:06.623054"], ["key", "environment"]]  (1.3ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (111.5ms) DROP DATABASE IF EXISTS "construction_test"  (335.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.4ms) CREATE 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)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (10.1ms) CREATE 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)  (4.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (4.1ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (8.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:40:38.094274"], ["updated_at", "2018-04-02 03:40:38.094274"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:40:38.101876"], ["key", "environment"]]  (1.2ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (125.0ms) DROP DATABASE IF EXISTS "construction_test"  (332.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (8.4ms) CREATE 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)  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (5.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (5.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (4.3ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.6ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (4.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:44:07.373184"], ["updated_at", "2018-04-02 03:44:07.373184"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:44:07.382034"], ["key", "environment"]]  (1.3ms) COMMIT  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (123.7ms) DROP DATABASE IF EXISTS "construction_test"  (373.9ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (12.4ms) CREATE 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)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (10.4ms) CREATE 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)  (4.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.5ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (4.1ms) CREATE 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")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (4.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.8ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (8.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:45:53.549090"], ["updated_at", "2018-04-02 03:45:53.549090"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:45:53.556839"], ["key", "environment"]]  (1.3ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.0ms) DROP DATABASE IF EXISTS "construction_test"  (360.9ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.0ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (5.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (4.7ms) CREATE 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")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (12.7ms) CREATE 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)  (6.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.2ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (3.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (30.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (3.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:46:23.068799"], ["updated_at", "2018-04-02 03:46:23.068799"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN SQL (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:46:23.078035"], ["key", "environment"]]  (1.3ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.8ms) DROP DATABASE IF EXISTS "construction_test"  (351.2ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.2ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.7ms) CREATE 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")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (9.8ms) CREATE 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)  (4.8ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (10.3ms) CREATE 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 't' NOT NULL, "password_digest" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (4.0ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.8ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-04-02 03:57:10.684361"], ["updated_at", "2018-04-02 03:57:10.684361"]]  (2.0ms) COMMIT ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN SQL (1.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-04-02 03:57:10.696013"], ["key", "environment"]]  (1.9ms) COMMIT  (17.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (7.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (229.1ms) DROP DATABASE IF EXISTS "construction_test"  (614.4ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (31.5ms) CREATE 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)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (14.7ms) CREATE 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)  (4.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (5.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (4.5ms) CREATE 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")  (1.2ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (9.3ms) CREATE 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)  (4.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.7ms) CREATE 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)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (3.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.8ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (3.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (10.0ms) CREATE 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)  (1.0ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (8.4ms) CREATE 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)  (3.9ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.9ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (5.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (4.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (4.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (4.7ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (5.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.7ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (10.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (9.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-11 14:26:31.704892"], ["updated_at", "2018-07-11 14:26:31.704892"]]  (1.5ms) COMMIT ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-11 14:26:31.714599"], ["key", "environment"]]  (1.3ms) COMMIT  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (113.9ms) DROP DATABASE IF EXISTS "construction_test"  (545.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (14.3ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.2ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (3.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.9ms) CREATE 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)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.4ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.0ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (5.9ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (6.8ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (8.2ms) CREATE 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)  (3.6ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.3ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (4.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (6.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 11:50:18.336828"], ["updated_at", "2018-07-15 11:50:18.336828"]]  (2.0ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 11:50:18.345206"], ["key", "environment"]]  (1.4ms) COMMIT  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.0ms) DROP DATABASE IF EXISTS "construction_test"  (334.8ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (12.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.5ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (6.2ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (7.0ms) CREATE 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)  (3.4ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.2ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 11:59:45.442626"], ["updated_at", "2018-07-15 11:59:45.442626"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 11:59:45.450347"], ["key", "environment"]]  (1.3ms) COMMIT  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.7ms) DROP DATABASE IF EXISTS "construction_test"  (342.7ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.0ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.5ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (6.2ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (6.2ms) CREATE 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)  (3.3ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.1ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:00:33.472671"], ["updated_at", "2018-07-15 12:00:33.472671"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:00:33.480126"], ["key", "environment"]]  (1.2ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.8ms) DROP DATABASE IF EXISTS "construction_test"  (342.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.2ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (5.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (11.2ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (4.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:01:29.796768"], ["updated_at", "2018-07-15 12:01:29.796768"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:01:29.804483"], ["key", "environment"]]  (1.3ms) COMMIT  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.7ms) DROP DATABASE IF EXISTS "construction_test"  (330.2ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.8ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.9ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.3ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (6.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (6.3ms) CREATE 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)  (3.2ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.0ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:01:50.508293"], ["updated_at", "2018-07-15 12:01:50.508293"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:01:50.515639"], ["key", "environment"]]  (1.3ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.3ms) DROP DATABASE IF EXISTS "construction_test"  (325.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.6ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.4ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE 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)  (5.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (5.9ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (6.3ms) CREATE 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)  (3.5ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.2ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:03:50.691391"], ["updated_at", "2018-07-15 12:03:50.691391"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:03:50.698661"], ["key", "environment"]]  (1.2ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.5ms) DROP DATABASE IF EXISTS "construction_test"  (322.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (12.5ms) CREATE 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)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.8ms) CREATE 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)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.6ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE 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)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.5ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (6.1ms) CREATE 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)  (0.7ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (9.0ms) CREATE 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)  (3.3ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.4ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:04:25.030523"], ["updated_at", "2018-07-15 12:04:25.030523"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:04:25.037978"], ["key", "environment"]]  (1.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (120.9ms) DROP DATABASE IF EXISTS "construction_test"  (308.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE 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)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" serial NOT NULL PRIMARY KEY, "menu_id" integer, "user_role_id" integer)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE 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)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" integer, "user_role_id" integer)  (3.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_rent_clients" CASCADE  (6.1ms) CREATE 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)  (0.6ms) DROP TABLE IF EXISTS "mks_rent_offer_requests" CASCADE  (6.2ms) CREATE 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)  (3.2ms) CREATE INDEX "client_on_er_indx" ON "mks_rent_offer_requests" ("client_id")  (3.1ms) CREATE INDEX "equipment_on_rb_indx" ON "mks_rent_offer_requests" ("prepared_by_id")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_rent_offer_requests" ADD CONSTRAINT "fk_rails_eb6ab13de0" FOREIGN KEY ("prepared_by_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180205141841)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023), (20180201104912);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:05:28.291522"], ["updated_at", "2018-07-15 12:05:28.291522"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:05:28.300111"], ["key", "environment"]]  (1.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.6ms) DROP DATABASE IF EXISTS "construction_test"  (316.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.8ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.4ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.5ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:10:17.811272"], ["updated_at", "2018-07-15 12:10:17.811272"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:10:17.818779"], ["key", "environment"]]  (1.3ms) COMMIT  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.3ms) DROP DATABASE IF EXISTS "construction_test"  (325.2ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.6ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.4ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:11:23.288333"], ["updated_at", "2018-07-15 12:11:23.288333"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:11:23.295745"], ["key", "environment"]]  (1.3ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.9ms) DROP DATABASE IF EXISTS "construction_test"  (317.0ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (14.1ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (9.2ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.8ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.9ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:11:55.503891"], ["updated_at", "2018-07-15 12:11:55.503891"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:11:55.511574"], ["key", "environment"]]  (1.4ms) COMMIT  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.0ms) DROP DATABASE IF EXISTS "construction_test"  (324.9ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.0ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (8.2ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.0ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (4.0ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.8ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.9ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.1ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.4ms) CREATE 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")  (4.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.0ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:13:15.042121"], ["updated_at", "2018-07-15 12:13:15.042121"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:13:15.050995"], ["key", "environment"]]  (1.5ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.0ms) DROP DATABASE IF EXISTS "construction_test"  (322.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.5ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.6ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.2ms) CREATE 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")  (2.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.0ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:13:57.028301"], ["updated_at", "2018-07-15 12:13:57.028301"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:13:57.035834"], ["key", "environment"]]  (1.3ms) COMMIT  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (8.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (123.0ms) DROP DATABASE IF EXISTS "construction_test"  (331.0ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.4ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.6ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.4ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.2ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.7ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.1ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.5ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.6ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.3ms) BEGIN ActiveRecord::InternalMetadata Create (2.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:15:46.013819"], ["updated_at", "2018-07-15 12:15:46.013819"]]  (1.8ms) COMMIT ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.8ms) BEGIN ActiveRecord::InternalMetadata Update (2.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:15:46.028579"], ["key", "environment"]]  (2.8ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (120.1ms) DROP DATABASE IF EXISTS "construction_test"  (318.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.7ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.6ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:24:35.158270"], ["updated_at", "2018-07-15 12:24:35.158270"]]  (1.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:24:35.166441"], ["key", "environment"]]  (1.3ms) COMMIT  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (125.5ms) DROP DATABASE IF EXISTS "construction_test"  (338.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.9ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.5ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.6ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.2ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:26:15.825928"], ["updated_at", "2018-07-15 12:26:15.825928"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:26:15.833241"], ["key", "environment"]]  (1.4ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.1ms) DROP DATABASE IF EXISTS "construction_test"  (335.2ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (9.5ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.7ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.2ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.5ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.5ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.6ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.5ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:26:39.813462"], ["updated_at", "2018-07-15 12:26:39.813462"]]  (2.0ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:26:39.822716"], ["key", "environment"]]  (1.3ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (124.1ms) DROP DATABASE IF EXISTS "construction_test"  (331.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (10.3ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (6.9ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (3.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.0ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.7ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.5ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (3.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-15 12:26:51.135602"], ["updated_at", "2018-07-15 12:26:51.135602"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (1.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-15 12:26:51.143160"], ["key", "environment"]]  (1.3ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (4.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (456.0ms) DROP DATABASE IF EXISTS "construction_test"  (560.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (6.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (46.3ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (11.2ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (5.0ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (5.5ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (9.6ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.7ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (4.3ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (5.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (4.0ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (4.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (10.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (10.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-27 06:46:26.657432"], ["updated_at", "2018-07-27 06:46:26.657432"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-27 06:46:26.665522"], ["key", "environment"]]  (1.3ms) COMMIT  (5.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (114.1ms) DROP DATABASE IF EXISTS "construction_test"  (352.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.1ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (20.9ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (13.1ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.2ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (5.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (7.1ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.7ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (10.4ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (2.0ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (9.1ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.4ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.6ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (6.3ms) CREATE 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")  (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (3.1ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.8ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (4.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-27 07:26:35.190384"], ["updated_at", "2018-07-27 07:26:35.190384"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.8ms) BEGIN ActiveRecord::InternalMetadata Update (1.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-27 07:26:35.199604"], ["key", "environment"]]  (1.4ms) COMMIT  (2.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (118.8ms) DROP DATABASE IF EXISTS "construction_test"  (386.9ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.1ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.7ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (9.2ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (1.1ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.9ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.9ms) CREATE 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")  (1.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (8.7ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.3ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.4ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.7ms) CREATE 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")  (3.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (4.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-27 07:27:22.444862"], ["updated_at", "2018-07-27 07:27:22.444862"]]  (1.7ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN ActiveRecord::InternalMetadata Update (1.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-27 07:27:22.453500"], ["key", "environment"]]  (1.4ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (122.9ms) DROP DATABASE IF EXISTS "construction_test"  (377.3ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (14.1ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.8ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.7ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (8.5ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (7.0ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (1.0ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.5ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.2ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (4.1ms) CREATE 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")  (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (3.0ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (3.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.7ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (6.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-27 07:48:39.426935"], ["updated_at", "2018-07-27 07:48:39.426935"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.5ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-27 07:48:39.435950"], ["key", "environment"]]  (1.3ms) COMMIT  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (119.9ms) DROP DATABASE IF EXISTS "construction_test"  (354.6ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.9ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (5.4ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (5.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.7ms) CREATE 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")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.4ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.8ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.3ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.8ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (4.8ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-27 08:13:53.659484"], ["updated_at", "2018-07-27 08:13:53.659484"]]  (1.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-27 08:13:53.666723"], ["key", "environment"]]  (1.3ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (123.8ms) DROP DATABASE IF EXISTS "construction_test"  (328.1ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.0ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (7.0ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (6.2ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.3ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (6.4ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.3ms) CREATE 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")  (3.2ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.8ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.8ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-27 08:21:59.090286"], ["updated_at", "2018-07-27 08:21:59.090286"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-27 08:21:59.098379"], ["key", "environment"]]  (1.4ms) COMMIT  (4.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (120.7ms) DROP DATABASE IF EXISTS "construction_test"  (555.8ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (13.2ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (9.2ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.6ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (16.4ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.4ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (4.9ms) CREATE 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")  (7.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.8ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (15.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (10.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 03:56:24.755900"], ["updated_at", "2018-07-28 03:56:24.755900"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-28 03:56:24.764023"], ["key", "environment"]]  (1.4ms) COMMIT  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (120.7ms) DROP DATABASE IF EXISTS "construction_test"  (359.5ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (15.6ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (10.4ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (5.4ms) CREATE 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")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (7.2ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (1.0ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (11.1ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (1.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (2.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.8ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (4.4ms) CREATE 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")  (14.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (4.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (4.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.9ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (14.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (13.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.1ms) BEGIN ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:02:25.402952"], ["updated_at", "2018-07-28 04:02:25.402952"]]  (1.8ms) COMMIT ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.0ms) BEGIN ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-28 04:02:25.415227"], ["key", "environment"]]  (1.8ms) COMMIT  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (119.1ms) DROP DATABASE IF EXISTS "construction_test"  (337.5ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (11.8ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (8.5ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (5.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (3.9ms) CREATE 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")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (9.5ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (9.8ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (5.2ms) CREATE 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")  (3.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:03:39.272727"], ["updated_at", "2018-07-28 04:03:39.272727"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Update (0.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-28 04:03:39.280343"], ["key", "environment"]]  (1.3ms) COMMIT  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (121.2ms) DROP DATABASE IF EXISTS "construction_test"  (337.4ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (14.9ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (18.5ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (5.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (6.0ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.1ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.6ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (2.2ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.1ms) CREATE 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")  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (3.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:04:11.872234"], ["updated_at", "2018-07-28 04:04:11.872234"]]  (1.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.0ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-28 04:04:11.880285"], ["key", "environment"]]  (1.3ms) COMMIT  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (124.2ms) DROP DATABASE IF EXISTS "construction_test"  (337.0ms) CREATE DATABASE "construction_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE  (14.2ms) CREATE TABLE "mks_auth_application_modules" ("id" bigserial primary key, "code" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE  (8.4ms) CREATE TABLE "mks_auth_menus" ("id" bigserial primary key, "text" character varying NOT NULL, "icon_cls" character varying, "class_name" character varying, "location" character varying, "parent_id" integer, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")  (4.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)  (6.3ms) CREATE 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")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE  (6.5ms) CREATE TABLE "mks_auth_user_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "application_module_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE  (8.5ms) CREATE TABLE "mks_auth_users" ("id" bigserial 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)  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)  (4.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)  (3.5ms) CREATE 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")  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc" FOREIGN KEY ("parent_id") REFERENCES "mks_auth_menus" ("id")   (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36" FOREIGN KEY ("menu_id") REFERENCES "mks_auth_menus" ("id")   (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c" FOREIGN KEY ("application_module_id") REFERENCES "mks_auth_application_modules" ("id")   (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8" FOREIGN KEY ("user_role_id") REFERENCES "mks_auth_user_roles" ("id")   (3.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa" FOREIGN KEY ("user_id") REFERENCES "mks_auth_users" ("id")   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20161029065810), (20161029065959), (20161029070807), (20161029071047), (20161029072256), (20161029074023);   (7.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:10:34.052792"], ["updated_at", "2018-07-28 04:10:34.052792"]]  (1.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.7ms) BEGIN ActiveRecord::InternalMetadata Update (0.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2018-07-28 04:10:34.060223"], ["key", "environment"]]  (1.3ms) COMMIT