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 +4 -4
- data/app/models/mks/auth/user.rb +4 -0
- data/app/models/mks/auth/user_role.rb +4 -0
- data/lib/mks/auth/version.rb +1 -1
- data/spec/controllers/mks/auth/user_roles_controller_spec.rb +3 -4
- data/spec/dummy/log/development.log +430 -0
- data/spec/dummy/log/test.log +4609 -0
- data/spec/models/mks/auth/user_role_spec.rb +6 -0
- data/spec/models/mks/auth/user_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37056ea18a622827ae2f1f1bc944679a3529f7ed4714d4c5e4d56ea7196bab92
|
4
|
+
data.tar.gz: 8fd18dabcc6233261a5102213f4f62fd5b6ac24c090a022af619210ec0ea2a08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8442d29bb5de7a3f644de5317a389ffcc5b1883aaec660a5233fc287c7db5ce806eec1dec0cea70928a86ec9e866f4ac5938c849b11a5fc9932d539ba43952f9
|
7
|
+
data.tar.gz: '0870f56b73db021b3dc09da9439c51d7d7979aca3c7db1b615adc15af7edf5ad741674e40eb31102edc4606a8f29399fc9b21eb55177d9076b3669d58005cec0'
|
data/app/models/mks/auth/user.rb
CHANGED
@@ -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
|
data/lib/mks/auth/version.rb
CHANGED
@@ -20,7 +20,7 @@ module Mks
|
|
20
20
|
get :index
|
21
21
|
|
22
22
|
result = JSON(response.body)
|
23
|
-
expect(result
|
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(
|
43
|
-
expect((users -
|
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
|
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
14181
14181
|
[1m[36mActiveRecord::InternalMetadata Update (0.9ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-07-27 08:21:59.098379"], ["key", "environment"]]
|
14182
14182
|
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
14183
|
+
[1m[35m (4.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14184
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14185
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14186
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14187
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14188
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14189
|
+
[1m[35m (120.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "construction_test"[0m
|
14190
|
+
[1m[35m (555.8ms)[0m [1m[35mCREATE DATABASE "construction_test" ENCODING = 'utf8'[0m
|
14191
|
+
[1m[35mSQL (0.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
14192
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE[0m
|
14193
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE 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)[0m
|
14194
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus" CASCADE[0m
|
14195
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE 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)[0m
|
14196
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")[0m
|
14197
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")[0m
|
14198
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE[0m
|
14199
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)[0m
|
14200
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id" ON "mks_auth_menus_user_roles" ("menu_id", "user_role_id")[0m
|
14201
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE[0m
|
14202
|
+
[1m[35m (16.4ms)[0m [1m[35mCREATE 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)[0m
|
14203
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")[0m
|
14204
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users" CASCADE[0m
|
14205
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE 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)[0m
|
14206
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE[0m
|
14207
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)[0m
|
14208
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")[0m
|
14209
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE[0m
|
14210
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)[0m
|
14211
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id" ON "mks_auth_users_user_roles" ("user_id", "user_role_id")[0m
|
14212
|
+
[1m[35m (7.5ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
|
14213
|
+
FOREIGN KEY ("application_module_id")
|
14214
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14215
|
+
[0m
|
14216
|
+
[1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
|
14217
|
+
FOREIGN KEY ("parent_id")
|
14218
|
+
REFERENCES "mks_auth_menus" ("id")
|
14219
|
+
[0m
|
14220
|
+
[1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
|
14221
|
+
FOREIGN KEY ("menu_id")
|
14222
|
+
REFERENCES "mks_auth_menus" ("id")
|
14223
|
+
[0m
|
14224
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER 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
|
+
[0m
|
14228
|
+
[1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
|
14229
|
+
FOREIGN KEY ("application_module_id")
|
14230
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14231
|
+
[0m
|
14232
|
+
[1m[35m (2.4ms)[0m [1m[35mALTER 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
|
+
[0m
|
14236
|
+
[1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
|
14237
|
+
FOREIGN KEY ("user_id")
|
14238
|
+
REFERENCES "mks_auth_users" ("id")
|
14239
|
+
[0m
|
14240
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER 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
|
+
[0m
|
14244
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
|
14245
|
+
FOREIGN KEY ("user_id")
|
14246
|
+
REFERENCES "mks_auth_users" ("id")
|
14247
|
+
[0m
|
14248
|
+
[1m[35m (15.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
14249
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14250
|
+
[1m[35m (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180201104912)[0m
|
14251
|
+
[1m[35m (1.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
14252
|
+
(20161029065810),
|
14253
|
+
(20161029065959),
|
14254
|
+
(20161029070807),
|
14255
|
+
(20161029071047),
|
14256
|
+
(20161029072256),
|
14257
|
+
(20161029074023);
|
14258
|
+
|
14259
|
+
[0m
|
14260
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
14261
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14262
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
14263
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 03:56:24.755900"], ["updated_at", "2018-07-28 03:56:24.755900"]]
|
14264
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
14265
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14266
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
14267
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.9ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-07-28 03:56:24.764023"], ["key", "environment"]]
|
14268
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
14269
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14270
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14271
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14272
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14273
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14274
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14275
|
+
[1m[35m (120.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "construction_test"[0m
|
14276
|
+
[1m[35m (359.5ms)[0m [1m[35mCREATE DATABASE "construction_test" ENCODING = 'utf8'[0m
|
14277
|
+
[1m[35mSQL (0.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
14278
|
+
[1m[35m (1.0ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE[0m
|
14279
|
+
[1m[35m (15.6ms)[0m [1m[35mCREATE 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)[0m
|
14280
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus" CASCADE[0m
|
14281
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE 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)[0m
|
14282
|
+
[1m[35m (5.0ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")[0m
|
14283
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")[0m
|
14284
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE[0m
|
14285
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)[0m
|
14286
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id" ON "mks_auth_menus_user_roles" ("menu_id", "user_role_id")[0m
|
14287
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE[0m
|
14288
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE 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)[0m
|
14289
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")[0m
|
14290
|
+
[1m[35m (1.0ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users" CASCADE[0m
|
14291
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE 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)[0m
|
14292
|
+
[1m[35m (1.5ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE[0m
|
14293
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)[0m
|
14294
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")[0m
|
14295
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE[0m
|
14296
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)[0m
|
14297
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id" ON "mks_auth_users_user_roles" ("user_id", "user_role_id")[0m
|
14298
|
+
[1m[35m (14.4ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
|
14299
|
+
FOREIGN KEY ("application_module_id")
|
14300
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14301
|
+
[0m
|
14302
|
+
[1m[35m (4.1ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
|
14303
|
+
FOREIGN KEY ("parent_id")
|
14304
|
+
REFERENCES "mks_auth_menus" ("id")
|
14305
|
+
[0m
|
14306
|
+
[1m[35m (4.9ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
|
14307
|
+
FOREIGN KEY ("menu_id")
|
14308
|
+
REFERENCES "mks_auth_menus" ("id")
|
14309
|
+
[0m
|
14310
|
+
[1m[35m (2.7ms)[0m [1m[35mALTER 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
|
+
[0m
|
14314
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
|
14315
|
+
FOREIGN KEY ("application_module_id")
|
14316
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14317
|
+
[0m
|
14318
|
+
[1m[35m (2.6ms)[0m [1m[35mALTER 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
|
+
[0m
|
14322
|
+
[1m[35m (2.9ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
|
14323
|
+
FOREIGN KEY ("user_id")
|
14324
|
+
REFERENCES "mks_auth_users" ("id")
|
14325
|
+
[0m
|
14326
|
+
[1m[35m (3.5ms)[0m [1m[35mALTER 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
|
+
[0m
|
14330
|
+
[1m[35m (3.6ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
|
14331
|
+
FOREIGN KEY ("user_id")
|
14332
|
+
REFERENCES "mks_auth_users" ("id")
|
14333
|
+
[0m
|
14334
|
+
[1m[35m (14.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
14335
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14336
|
+
[1m[35m (2.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180201104912)[0m
|
14337
|
+
[1m[35m (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
14338
|
+
(20161029065810),
|
14339
|
+
(20161029065959),
|
14340
|
+
(20161029070807),
|
14341
|
+
(20161029071047),
|
14342
|
+
(20161029072256),
|
14343
|
+
(20161029074023);
|
14344
|
+
|
14345
|
+
[0m
|
14346
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
14347
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14348
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
14349
|
+
[1m[36mActiveRecord::InternalMetadata Create (2.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:02:25.402952"], ["updated_at", "2018-07-28 04:02:25.402952"]]
|
14350
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
14351
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14352
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
14353
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-07-28 04:02:25.415227"], ["key", "environment"]]
|
14354
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
14355
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14356
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14357
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14358
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14359
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14360
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14361
|
+
[1m[35m (119.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "construction_test"[0m
|
14362
|
+
[1m[35m (337.5ms)[0m [1m[35mCREATE DATABASE "construction_test" ENCODING = 'utf8'[0m
|
14363
|
+
[1m[35mSQL (0.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
14364
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE[0m
|
14365
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE 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)[0m
|
14366
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus" CASCADE[0m
|
14367
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE 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)[0m
|
14368
|
+
[1m[35m (5.0ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")[0m
|
14369
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")[0m
|
14370
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE[0m
|
14371
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)[0m
|
14372
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id" ON "mks_auth_menus_user_roles" ("menu_id", "user_role_id")[0m
|
14373
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE[0m
|
14374
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE 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)[0m
|
14375
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")[0m
|
14376
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users" CASCADE[0m
|
14377
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE 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)[0m
|
14378
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE[0m
|
14379
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)[0m
|
14380
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")[0m
|
14381
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE[0m
|
14382
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)[0m
|
14383
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id" ON "mks_auth_users_user_roles" ("user_id", "user_role_id")[0m
|
14384
|
+
[1m[35m (3.9ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
|
14385
|
+
FOREIGN KEY ("application_module_id")
|
14386
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14387
|
+
[0m
|
14388
|
+
[1m[35m (3.1ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
|
14389
|
+
FOREIGN KEY ("parent_id")
|
14390
|
+
REFERENCES "mks_auth_menus" ("id")
|
14391
|
+
[0m
|
14392
|
+
[1m[35m (2.7ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
|
14393
|
+
FOREIGN KEY ("menu_id")
|
14394
|
+
REFERENCES "mks_auth_menus" ("id")
|
14395
|
+
[0m
|
14396
|
+
[1m[35m (2.7ms)[0m [1m[35mALTER 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
|
+
[0m
|
14400
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
|
14401
|
+
FOREIGN KEY ("application_module_id")
|
14402
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14403
|
+
[0m
|
14404
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER 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
|
+
[0m
|
14408
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
|
14409
|
+
FOREIGN KEY ("user_id")
|
14410
|
+
REFERENCES "mks_auth_users" ("id")
|
14411
|
+
[0m
|
14412
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER 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
|
+
[0m
|
14416
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
|
14417
|
+
FOREIGN KEY ("user_id")
|
14418
|
+
REFERENCES "mks_auth_users" ("id")
|
14419
|
+
[0m
|
14420
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
14421
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14422
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180201104912)[0m
|
14423
|
+
[1m[35m (1.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
14424
|
+
(20161029065810),
|
14425
|
+
(20161029065959),
|
14426
|
+
(20161029070807),
|
14427
|
+
(20161029071047),
|
14428
|
+
(20161029072256),
|
14429
|
+
(20161029074023);
|
14430
|
+
|
14431
|
+
[0m
|
14432
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
14433
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14434
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
14435
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:03:39.272727"], ["updated_at", "2018-07-28 04:03:39.272727"]]
|
14436
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
14437
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14438
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
14439
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.8ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-07-28 04:03:39.280343"], ["key", "environment"]]
|
14440
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
14441
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14442
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14443
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14444
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14445
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14446
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14447
|
+
[1m[35m (121.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "construction_test"[0m
|
14448
|
+
[1m[35m (337.4ms)[0m [1m[35mCREATE DATABASE "construction_test" ENCODING = 'utf8'[0m
|
14449
|
+
[1m[35mSQL (0.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
14450
|
+
[1m[35m (0.9ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE[0m
|
14451
|
+
[1m[35m (14.9ms)[0m [1m[35mCREATE 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)[0m
|
14452
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus" CASCADE[0m
|
14453
|
+
[1m[35m (18.5ms)[0m [1m[35mCREATE 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)[0m
|
14454
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")[0m
|
14455
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")[0m
|
14456
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE[0m
|
14457
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)[0m
|
14458
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id" ON "mks_auth_menus_user_roles" ("menu_id", "user_role_id")[0m
|
14459
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE[0m
|
14460
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE 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)[0m
|
14461
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")[0m
|
14462
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users" CASCADE[0m
|
14463
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE 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)[0m
|
14464
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE[0m
|
14465
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)[0m
|
14466
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")[0m
|
14467
|
+
[1m[35m (0.9ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE[0m
|
14468
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)[0m
|
14469
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id" ON "mks_auth_users_user_roles" ("user_id", "user_role_id")[0m
|
14470
|
+
[1m[35m (3.3ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
|
14471
|
+
FOREIGN KEY ("application_module_id")
|
14472
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14473
|
+
[0m
|
14474
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
|
14475
|
+
FOREIGN KEY ("parent_id")
|
14476
|
+
REFERENCES "mks_auth_menus" ("id")
|
14477
|
+
[0m
|
14478
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
|
14479
|
+
FOREIGN KEY ("menu_id")
|
14480
|
+
REFERENCES "mks_auth_menus" ("id")
|
14481
|
+
[0m
|
14482
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER 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
|
+
[0m
|
14486
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
|
14487
|
+
FOREIGN KEY ("application_module_id")
|
14488
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14489
|
+
[0m
|
14490
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER 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
|
+
[0m
|
14494
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
|
14495
|
+
FOREIGN KEY ("user_id")
|
14496
|
+
REFERENCES "mks_auth_users" ("id")
|
14497
|
+
[0m
|
14498
|
+
[1m[35m (3.7ms)[0m [1m[35mALTER 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
|
+
[0m
|
14502
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
|
14503
|
+
FOREIGN KEY ("user_id")
|
14504
|
+
REFERENCES "mks_auth_users" ("id")
|
14505
|
+
[0m
|
14506
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
14507
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14508
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180201104912)[0m
|
14509
|
+
[1m[35m (1.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
14510
|
+
(20161029065810),
|
14511
|
+
(20161029065959),
|
14512
|
+
(20161029070807),
|
14513
|
+
(20161029071047),
|
14514
|
+
(20161029072256),
|
14515
|
+
(20161029074023);
|
14516
|
+
|
14517
|
+
[0m
|
14518
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
14519
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14520
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
14521
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.9ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:04:11.872234"], ["updated_at", "2018-07-28 04:04:11.872234"]]
|
14522
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
14523
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14524
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
14525
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.9ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-07-28 04:04:11.880285"], ["key", "environment"]]
|
14526
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
14527
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14528
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14529
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14530
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14531
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14532
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
14533
|
+
[1m[35m (124.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "construction_test"[0m
|
14534
|
+
[1m[35m (337.0ms)[0m [1m[35mCREATE DATABASE "construction_test" ENCODING = 'utf8'[0m
|
14535
|
+
[1m[35mSQL (0.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
14536
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_application_modules" CASCADE[0m
|
14537
|
+
[1m[35m (14.2ms)[0m [1m[35mCREATE 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)[0m
|
14538
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus" CASCADE[0m
|
14539
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE 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)[0m
|
14540
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_application_module_id" ON "mks_auth_menus" ("application_module_id")[0m
|
14541
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_on_parent_id" ON "mks_auth_menus" ("parent_id")[0m
|
14542
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_menus_user_roles" CASCADE[0m
|
14543
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "mks_auth_menus_user_roles" ("id" bigserial primary key, "menu_id" bigint, "user_role_id" bigint)[0m
|
14544
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE INDEX "index_mks_auth_menus_user_roles_on_menu_id_and_user_role_id" ON "mks_auth_menus_user_roles" ("menu_id", "user_role_id")[0m
|
14545
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_user_roles" CASCADE[0m
|
14546
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE 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)[0m
|
14547
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_mks_auth_user_roles_on_application_module_id" ON "mks_auth_user_roles" ("application_module_id")[0m
|
14548
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users" CASCADE[0m
|
14549
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE 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)[0m
|
14550
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_application_modules" CASCADE[0m
|
14551
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "mks_auth_users_application_modules" ("user_id" bigint, "application_module_id" bigint)[0m
|
14552
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "am_on_users_indx" ON "mks_auth_users_application_modules" ("user_id", "application_module_id")[0m
|
14553
|
+
[1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "mks_auth_users_user_roles" CASCADE[0m
|
14554
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "mks_auth_users_user_roles" ("user_id" bigint, "user_role_id" bigint)[0m
|
14555
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_mks_auth_users_user_roles_on_user_id_and_user_role_id" ON "mks_auth_users_user_roles" ("user_id", "user_role_id")[0m
|
14556
|
+
[1m[35m (3.1ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_e5dd25fcb5"
|
14557
|
+
FOREIGN KEY ("application_module_id")
|
14558
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14559
|
+
[0m
|
14560
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "mks_auth_menus" ADD CONSTRAINT "fk_rails_826b2757bc"
|
14561
|
+
FOREIGN KEY ("parent_id")
|
14562
|
+
REFERENCES "mks_auth_menus" ("id")
|
14563
|
+
[0m
|
14564
|
+
[1m[35m (2.4ms)[0m [1m[35mALTER TABLE "mks_auth_menus_user_roles" ADD CONSTRAINT "fk_rails_1807c05e36"
|
14565
|
+
FOREIGN KEY ("menu_id")
|
14566
|
+
REFERENCES "mks_auth_menus" ("id")
|
14567
|
+
[0m
|
14568
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER 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
|
+
[0m
|
14572
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "mks_auth_user_roles" ADD CONSTRAINT "fk_rails_b0b293e4e2"
|
14573
|
+
FOREIGN KEY ("application_module_id")
|
14574
|
+
REFERENCES "mks_auth_application_modules" ("id")
|
14575
|
+
[0m
|
14576
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER 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
|
+
[0m
|
14580
|
+
[1m[35m (2.6ms)[0m [1m[35mALTER TABLE "mks_auth_users_application_modules" ADD CONSTRAINT "fk_rails_1010e0182a"
|
14581
|
+
FOREIGN KEY ("user_id")
|
14582
|
+
REFERENCES "mks_auth_users" ("id")
|
14583
|
+
[0m
|
14584
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER 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
|
+
[0m
|
14588
|
+
[1m[35m (3.2ms)[0m [1m[35mALTER TABLE "mks_auth_users_user_roles" ADD CONSTRAINT "fk_rails_7cc19890aa"
|
14589
|
+
FOREIGN KEY ("user_id")
|
14590
|
+
REFERENCES "mks_auth_users" ("id")
|
14591
|
+
[0m
|
14592
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
14593
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14594
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180201104912)[0m
|
14595
|
+
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
14596
|
+
(20161029065810),
|
14597
|
+
(20161029065959),
|
14598
|
+
(20161029070807),
|
14599
|
+
(20161029071047),
|
14600
|
+
(20161029072256),
|
14601
|
+
(20161029074023);
|
14602
|
+
|
14603
|
+
[0m
|
14604
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
14605
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14606
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
14607
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-07-28 04:10:34.052792"], ["updated_at", "2018-07-28 04:10:34.052792"]]
|
14608
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
14609
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
14610
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
14611
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.9ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2018-07-28 04:10:34.060223"], ["key", "environment"]]
|
14612
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|