mks_auth 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5602816a7948f5b3390b642dedbf8dc830081c5926352ad8d660407e864b0dff
4
- data.tar.gz: c6c50608575caa73ab94f648cd4172e81a1e1e0a43a3ddd8b663718a0f59ac0f
3
+ metadata.gz: 37056ea18a622827ae2f1f1bc944679a3529f7ed4714d4c5e4d56ea7196bab92
4
+ data.tar.gz: 8fd18dabcc6233261a5102213f4f62fd5b6ac24c090a022af619210ec0ea2a08
5
5
  SHA512:
6
- metadata.gz: 38e66a61416e3d7d03bfda53e9886c7684f7711b3617ebbd6ae1f49ca1b5c596c1782c26710822aa18fd029594e1ff59d1832a976c47761ad0e916854dc5c29c
7
- data.tar.gz: bef073d116ead22c0b8d5c053582c6b733663209a8f6182b8109d94c19f6b695ba45af3699fd70b9d5532c6048e2500d66bac3dab4848d485481b2225385d922
6
+ metadata.gz: 8442d29bb5de7a3f644de5317a389ffcc5b1883aaec660a5233fc287c7db5ce806eec1dec0cea70928a86ec9e866f4ac5938c849b11a5fc9932d539ba43952f9
7
+ data.tar.gz: '0870f56b73db021b3dc09da9439c51d7d7979aca3c7db1b615adc15af7edf5ad741674e40eb31102edc4606a8f29399fc9b21eb55177d9076b3669d58005cec0'
@@ -37,6 +37,10 @@ module Mks
37
37
  roles = self.roles.select { |ur| ur.application_module == app_module }
38
38
  roles.count.positive?
39
39
  end
40
+
41
+ def role?(role)
42
+ roles.any? { |r| r.name.underscore.to_sym == role }
43
+ end
40
44
  end
41
45
  end
42
46
  end
@@ -7,6 +7,10 @@ module Mks
7
7
  belongs_to :application_module
8
8
  has_and_belongs_to_many :users, join_table: 'mks_auth_users_user_roles'
9
9
  has_and_belongs_to_many :menus, join_table: 'mks_auth_menus_user_roles'
10
+
11
+ def sym_name
12
+ name.underscore.to_sym
13
+ end
10
14
  end
11
15
  end
12
16
  end
@@ -1,5 +1,5 @@
1
1
  module Mks
2
2
  module Auth
3
- VERSION = '1.0.9'.freeze
3
+ VERSION = '1.0.10'.freeze
4
4
  end
5
5
  end
@@ -20,7 +20,7 @@ module Mks
20
20
  get :index
21
21
 
22
22
  result = JSON(response.body)
23
- expect(result['data'].count).to eq 3
23
+ expect(result.count).to eq 3
24
24
  end
25
25
  end
26
26
 
@@ -37,10 +37,9 @@ module Mks
37
37
  get :users, params: { id: r1.id }
38
38
 
39
39
  result = JSON(response.body)
40
- data = result['data']
41
40
  users = [JSON(u1.to_json), JSON(u2.to_json), JSON(u3.to_json)]
42
- expect(data.count).to eq 3
43
- expect((users - data).empty?).to be_truthy
41
+ expect(result.count).to eq 3
42
+ expect((users - result).empty?).to be_truthy
44
43
  end
45
44
  end
46
45
 
@@ -14180,3 +14180,433 @@ FOREIGN KEY ("user_id")
14180
14180
   (0.7ms) BEGIN
14181
14181
  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"]]
14182
14182
   (1.4ms) COMMIT
14183
+  (4.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14184
+  (2.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14185
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14186
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14187
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14188
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14189
+  (120.7ms) DROP DATABASE IF EXISTS "construction_test"
14190
+  (555.8ms) CREATE DATABASE "construction_test" ENCODING = 'utf8'
14191
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
14192
+  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE
14193
+  (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)
14194
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE
14195
+  (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)
14196
+  (3.8ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")
14197
+  (3.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")
14198
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE
14199
+  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)
14200
+  (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")
14201
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE
14202
+  (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)
14203
+  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")
14204
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE
14205
+  (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)
14206
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE
14207
+  (2.2ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)
14208
+  (3.7ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")
14209
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE
14210
+  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)
14211
+  (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")
14212
+  (7.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
14213
+ FOREIGN KEY ("application_module_id")
14214
+ REFERENCES "mks_auth_application_modules" ("id")
14215
+ 
14216
+  (2.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
14217
+ FOREIGN KEY ("parent_id")
14218
+ REFERENCES "mks_auth_menus" ("id")
14219
+ 
14220
+  (2.6ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
14221
+ FOREIGN KEY ("menu_id")
14222
+ REFERENCES "mks_auth_menus" ("id")
14223
+ 
14224
+  (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0"
14225
+ FOREIGN KEY ("user_role_id")
14226
+ REFERENCES "mks_auth_user_roles" ("id")
14227
+ 
14228
+  (2.4ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
14229
+ FOREIGN KEY ("application_module_id")
14230
+ REFERENCES "mks_auth_application_modules" ("id")
14231
+ 
14232
+  (2.4ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c"
14233
+ FOREIGN KEY ("application_module_id")
14234
+ REFERENCES "mks_auth_application_modules" ("id")
14235
+ 
14236
+  (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
14237
+ FOREIGN KEY ("user_id")
14238
+ REFERENCES "mks_auth_users" ("id")
14239
+ 
14240
+  (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8"
14241
+ FOREIGN KEY ("user_role_id")
14242
+ REFERENCES "mks_auth_user_roles" ("id")
14243
+ 
14244
+  (2.8ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
14245
+ FOREIGN KEY ("user_id")
14246
+ REFERENCES "mks_auth_users" ("id")
14247
+ 
14248
+  (15.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
14249
+  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14250
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)
14251
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES
14252
+ (20161029065810),
14253
+ (20161029065959),
14254
+ (20161029070807),
14255
+ (20161029071047),
14256
+ (20161029072256),
14257
+ (20161029074023);
14258
+
14259
+ 
14260
+  (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)
14261
+ 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]]
14262
+  (0.7ms) BEGIN
14263
+ 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"]]
14264
+  (1.3ms) COMMIT
14265
+ 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]]
14266
+  (0.6ms) BEGIN
14267
+ 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"]]
14268
+  (1.4ms) COMMIT
14269
+  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14270
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14271
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14272
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14273
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14274
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14275
+  (120.7ms) DROP DATABASE IF EXISTS "construction_test"
14276
+  (359.5ms) CREATE DATABASE "construction_test" ENCODING = 'utf8'
14277
+ SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
14278
+  (1.0ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE
14279
+  (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)
14280
+  (0.8ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE
14281
+  (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)
14282
+  (5.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")
14283
+  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")
14284
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE
14285
+  (4.8ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)
14286
+  (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")
14287
+  (0.8ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE
14288
+  (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)
14289
+  (7.1ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")
14290
+  (1.0ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE
14291
+  (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)
14292
+  (1.5ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE
14293
+  (2.1ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)
14294
+  (3.8ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")
14295
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE
14296
+  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)
14297
+  (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")
14298
+  (14.4ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
14299
+ FOREIGN KEY ("application_module_id")
14300
+ REFERENCES "mks_auth_application_modules" ("id")
14301
+ 
14302
+  (4.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
14303
+ FOREIGN KEY ("parent_id")
14304
+ REFERENCES "mks_auth_menus" ("id")
14305
+ 
14306
+  (4.9ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
14307
+ FOREIGN KEY ("menu_id")
14308
+ REFERENCES "mks_auth_menus" ("id")
14309
+ 
14310
+  (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0"
14311
+ FOREIGN KEY ("user_role_id")
14312
+ REFERENCES "mks_auth_user_roles" ("id")
14313
+ 
14314
+  (2.5ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
14315
+ FOREIGN KEY ("application_module_id")
14316
+ REFERENCES "mks_auth_application_modules" ("id")
14317
+ 
14318
+  (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c"
14319
+ FOREIGN KEY ("application_module_id")
14320
+ REFERENCES "mks_auth_application_modules" ("id")
14321
+ 
14322
+  (2.9ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
14323
+ FOREIGN KEY ("user_id")
14324
+ REFERENCES "mks_auth_users" ("id")
14325
+ 
14326
+  (3.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8"
14327
+ FOREIGN KEY ("user_role_id")
14328
+ REFERENCES "mks_auth_user_roles" ("id")
14329
+ 
14330
+  (3.6ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
14331
+ FOREIGN KEY ("user_id")
14332
+ REFERENCES "mks_auth_users" ("id")
14333
+ 
14334
+  (14.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
14335
+  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14336
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)
14337
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
14338
+ (20161029065810),
14339
+ (20161029065959),
14340
+ (20161029070807),
14341
+ (20161029071047),
14342
+ (20161029072256),
14343
+ (20161029074023);
14344
+
14345
+ 
14346
+  (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)
14347
+ 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]]
14348
+  (1.1ms) BEGIN
14349
+ 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"]]
14350
+  (1.8ms) COMMIT
14351
+ 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]]
14352
+  (1.0ms) BEGIN
14353
+ 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"]]
14354
+  (1.8ms) COMMIT
14355
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14356
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14357
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14358
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14359
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14360
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14361
+  (119.1ms) DROP DATABASE IF EXISTS "construction_test"
14362
+  (337.5ms) CREATE DATABASE "construction_test" ENCODING = 'utf8'
14363
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
14364
+  (0.8ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE
14365
+  (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)
14366
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE
14367
+  (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)
14368
+  (5.0ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")
14369
+  (5.2ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")
14370
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE
14371
+  (4.3ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)
14372
+  (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")
14373
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE
14374
+  (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)
14375
+  (3.6ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")
14376
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE
14377
+  (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)
14378
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE
14379
+  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)
14380
+  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")
14381
+  (0.8ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE
14382
+  (2.0ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)
14383
+  (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")
14384
+  (3.9ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
14385
+ FOREIGN KEY ("application_module_id")
14386
+ REFERENCES "mks_auth_application_modules" ("id")
14387
+ 
14388
+  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
14389
+ FOREIGN KEY ("parent_id")
14390
+ REFERENCES "mks_auth_menus" ("id")
14391
+ 
14392
+  (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
14393
+ FOREIGN KEY ("menu_id")
14394
+ REFERENCES "mks_auth_menus" ("id")
14395
+ 
14396
+  (2.7ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0"
14397
+ FOREIGN KEY ("user_role_id")
14398
+ REFERENCES "mks_auth_user_roles" ("id")
14399
+ 
14400
+  (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
14401
+ FOREIGN KEY ("application_module_id")
14402
+ REFERENCES "mks_auth_application_modules" ("id")
14403
+ 
14404
+  (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c"
14405
+ FOREIGN KEY ("application_module_id")
14406
+ REFERENCES "mks_auth_application_modules" ("id")
14407
+ 
14408
+  (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
14409
+ FOREIGN KEY ("user_id")
14410
+ REFERENCES "mks_auth_users" ("id")
14411
+ 
14412
+  (2.3ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8"
14413
+ FOREIGN KEY ("user_role_id")
14414
+ REFERENCES "mks_auth_user_roles" ("id")
14415
+ 
14416
+  (2.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
14417
+ FOREIGN KEY ("user_id")
14418
+ REFERENCES "mks_auth_users" ("id")
14419
+ 
14420
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
14421
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14422
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)
14423
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES
14424
+ (20161029065810),
14425
+ (20161029065959),
14426
+ (20161029070807),
14427
+ (20161029071047),
14428
+ (20161029072256),
14429
+ (20161029074023);
14430
+
14431
+ 
14432
+  (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)
14433
+ 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]]
14434
+  (0.7ms) BEGIN
14435
+ 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"]]
14436
+  (1.4ms) COMMIT
14437
+ 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]]
14438
+  (0.6ms) BEGIN
14439
+ 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"]]
14440
+  (1.3ms) COMMIT
14441
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14442
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14443
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14444
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14445
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14446
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14447
+  (121.2ms) DROP DATABASE IF EXISTS "construction_test"
14448
+  (337.4ms) CREATE DATABASE "construction_test" ENCODING = 'utf8'
14449
+ SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
14450
+  (0.9ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE
14451
+  (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)
14452
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE
14453
+  (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)
14454
+  (4.1ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")
14455
+  (5.7ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")
14456
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE
14457
+  (4.7ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)
14458
+  (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")
14459
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE
14460
+  (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)
14461
+  (4.7ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")
14462
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE
14463
+  (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)
14464
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE
14465
+  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)
14466
+  (3.4ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")
14467
+  (0.9ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE
14468
+  (2.2ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)
14469
+  (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")
14470
+  (3.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
14471
+ FOREIGN KEY ("application_module_id")
14472
+ REFERENCES "mks_auth_application_modules" ("id")
14473
+ 
14474
+  (2.5ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
14475
+ FOREIGN KEY ("parent_id")
14476
+ REFERENCES "mks_auth_menus" ("id")
14477
+ 
14478
+  (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
14479
+ FOREIGN KEY ("menu_id")
14480
+ REFERENCES "mks_auth_menus" ("id")
14481
+ 
14482
+  (2.3ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0"
14483
+ FOREIGN KEY ("user_role_id")
14484
+ REFERENCES "mks_auth_user_roles" ("id")
14485
+ 
14486
+  (2.3ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
14487
+ FOREIGN KEY ("application_module_id")
14488
+ REFERENCES "mks_auth_application_modules" ("id")
14489
+ 
14490
+  (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c"
14491
+ FOREIGN KEY ("application_module_id")
14492
+ REFERENCES "mks_auth_application_modules" ("id")
14493
+ 
14494
+  (2.3ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
14495
+ FOREIGN KEY ("user_id")
14496
+ REFERENCES "mks_auth_users" ("id")
14497
+ 
14498
+  (3.7ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8"
14499
+ FOREIGN KEY ("user_role_id")
14500
+ REFERENCES "mks_auth_user_roles" ("id")
14501
+ 
14502
+  (2.1ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
14503
+ FOREIGN KEY ("user_id")
14504
+ REFERENCES "mks_auth_users" ("id")
14505
+ 
14506
+  (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
14507
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14508
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)
14509
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES
14510
+ (20161029065810),
14511
+ (20161029065959),
14512
+ (20161029070807),
14513
+ (20161029071047),
14514
+ (20161029072256),
14515
+ (20161029074023);
14516
+
14517
+ 
14518
+  (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)
14519
+ 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]]
14520
+  (0.6ms) BEGIN
14521
+ 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"]]
14522
+  (1.4ms) COMMIT
14523
+ 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]]
14524
+  (1.0ms) BEGIN
14525
+ 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"]]
14526
+  (1.3ms) COMMIT
14527
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14528
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14529
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14530
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14531
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14532
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
14533
+  (124.2ms) DROP DATABASE IF EXISTS "construction_test"
14534
+  (337.0ms) CREATE DATABASE "construction_test" ENCODING = 'utf8'
14535
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
14536
+  (0.7ms) DROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE
14537
+  (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)
14538
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus" CASCADE
14539
+  (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)
14540
+  (6.4ms) CREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")
14541
+  (4.9ms) CREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")
14542
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE
14543
+  (4.4ms) CREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)
14544
+  (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")
14545
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE
14546
+  (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)
14547
+  (3.3ms) CREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")
14548
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users" CASCADE
14549
+  (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)
14550
+  (0.6ms) DROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE
14551
+  (1.9ms) CREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)
14552
+  (4.9ms) CREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")
14553
+  (0.5ms) DROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE
14554
+  (1.7ms) CREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)
14555
+  (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")
14556
+  (3.1ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
14557
+ FOREIGN KEY ("application_module_id")
14558
+ REFERENCES "mks_auth_application_modules" ("id")
14559
+ 
14560
+  (2.3ms) ALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
14561
+ FOREIGN KEY ("parent_id")
14562
+ REFERENCES "mks_auth_menus" ("id")
14563
+ 
14564
+  (2.4ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
14565
+ FOREIGN KEY ("menu_id")
14566
+ REFERENCES "mks_auth_menus" ("id")
14567
+ 
14568
+  (2.5ms) ALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_c24fca59c0"
14569
+ FOREIGN KEY ("user_role_id")
14570
+ REFERENCES "mks_auth_user_roles" ("id")
14571
+ 
14572
+  (2.2ms) ALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
14573
+ FOREIGN KEY ("application_module_id")
14574
+ REFERENCES "mks_auth_application_modules" ("id")
14575
+ 
14576
+  (2.2ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_b100f8542c"
14577
+ FOREIGN KEY ("application_module_id")
14578
+ REFERENCES "mks_auth_application_modules" ("id")
14579
+ 
14580
+  (2.6ms) ALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
14581
+ FOREIGN KEY ("user_id")
14582
+ REFERENCES "mks_auth_users" ("id")
14583
+ 
14584
+  (2.5ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_3dae904cd8"
14585
+ FOREIGN KEY ("user_role_id")
14586
+ REFERENCES "mks_auth_user_roles" ("id")
14587
+ 
14588
+  (3.2ms) ALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
14589
+ FOREIGN KEY ("user_id")
14590
+ REFERENCES "mks_auth_users" ("id")
14591
+ 
14592
+  (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
14593
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14594
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180201104912)
14595
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES
14596
+ (20161029065810),
14597
+ (20161029065959),
14598
+ (20161029070807),
14599
+ (20161029071047),
14600
+ (20161029072256),
14601
+ (20161029074023);
14602
+
14603
+ 
14604
+  (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)
14605
+ 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]]
14606
+  (0.6ms) BEGIN
14607
+ 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"]]
14608
+  (1.3ms) COMMIT
14609
+ 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]]
14610
+  (0.7ms) BEGIN
14611
+ 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"]]
14612
+  (1.3ms) COMMIT