cm_page_builder-rails 0.1.7 → 0.1.8

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: 4e28ec760654e9a35e522fec972e5309663176ff738adb72a2fa09611abec4de
4
- data.tar.gz: 6131ebf231f5ff1c949ba790edbecad1d52ae395e9821b69f6dd2e3d533a64a2
3
+ metadata.gz: bc46b1398eeb80b734113a1f52e35bd14b06a4af03f17542d495a927f80727ec
4
+ data.tar.gz: f407d946bfa2b474a4cd725ceb9241bf7d243a1a6a662f7dd75cd9baad4d0a95
5
5
  SHA512:
6
- metadata.gz: e667ab54a22f66eec4cc444cb71846e0d747e5e574b2326f58de4caa61396e3a30a42ac2ba89d17232c573fa1c7d850c2fbda68eaf470053b863be8ec335a18f
7
- data.tar.gz: 0ae8e11eca1edd6f26ae1ea7ddef02e565b9fa2ef7d6801d3105d2d3f29ce8d319259d77277454574df104ee5c8600935945f828905e4062b26b0c909adf1ff5
6
+ metadata.gz: 75912ae096d44b6fa1c311128b6346416df8d46e500d04ff43a0e2bd412fbce3299ddab20adc0ecb3e7dfa5788c8d48d761a4a3426b51922c067a9f9bd309c5d
7
+ data.tar.gz: 8a2571a42b333a90cda907e9d16c456f3b2827e99016ea89440e48957270bbc1f1f7bfca56066fa68d0eb9bfe1ebb64097f72d5f18a29f7b75a785d9ac05c9c6
@@ -1,9 +1,3 @@
1
1
  p#notice = notice
2
2
 
3
- p
4
- strong Container:
5
- = @page.container
6
-
7
3
  => link_to 'Edit', edit_page_path(@page)
8
- '|
9
- =< link_to 'Back', pages_path
@@ -4,6 +4,5 @@
4
4
 
5
5
 
6
6
  CmPageBuilder::Rails::Engine.routes.draw do
7
- resources :page_components
8
7
  resources :pages
9
8
  end
@@ -1,5 +1,5 @@
1
1
  module CmPageBuilder
2
2
  module Rails
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
4
4
  end
5
5
  end
@@ -1165,3 +1165,300 @@ FOREIGN KEY ("page_id")
1165
1165
   (0.1ms) BEGIN
1166
1166
  ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:10:55.853493"], ["updated_at", "2019-09-30 12:10:55.853493"]]
1167
1167
   (0.2ms) COMMIT
1168
+  (109.0ms) DROP DATABASE IF EXISTS "dummy_test"
1169
+  (235.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1170
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1171
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE
1172
+  (4.5ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp NOT NULL)
1173
+  (1.0ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
1174
+  (1.3ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
1175
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE
1176
+  (3.0ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "byte_size" bigint NOT NULL, "checksum" character varying NOT NULL, "created_at" timestamp NOT NULL)
1177
+  (0.9ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
1178
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_page_components" CASCADE
1179
+  (3.0ms) CREATE TABLE "cm_page_builder_rails_page_components" ("id" bigserial primary key, "uuid" character varying NOT NULL, "page_id" bigint NOT NULL, "content" character varying, "position" integer, "component_type" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1180
+  (0.9ms) CREATE INDEX "index_cm_page_builder_rails_page_components_on_page_id" ON "cm_page_builder_rails_page_components" ("page_id")
1181
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_pages" CASCADE
1182
+  (2.8ms) CREATE TABLE "cm_page_builder_rails_pages" ("id" bigserial primary key, "container_type" character varying NOT NULL, "container_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1183
+  (1.0ms) CREATE INDEX "container_composite_index" ON "cm_page_builder_rails_pages" ("container_type", "container_id")
1184
+  (0.1ms) DROP TABLE IF EXISTS "test_containers" CASCADE
1185
+  (3.1ms) CREATE TABLE "test_containers" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1186
+  (1.9ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1187
+ FOREIGN KEY ("blob_id")
1188
+ REFERENCES "active_storage_blobs" ("id")
1189
+ 
1190
+  (1.2ms) ALTER TABLE "cm_page_builder_rails_page_components" ADD CONSTRAINT "fk_rails_7fd23c6ccd"
1191
+ FOREIGN KEY ("page_id")
1192
+ REFERENCES "cm_page_builder_rails_pages" ("id")
1193
+ 
1194
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1195
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1196
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20190930120755)
1197
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES
1198
+ (20190816103148),
1199
+ (20190816105056),
1200
+ (20190903110322),
1201
+ (20190930111315);
1202
+
1203
+ 
1204
+  (2.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1205
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1206
+  (0.1ms) BEGIN
1207
+ ActiveRecord::InternalMetadata Create (0.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", "2019-09-30 12:35:50.717317"], ["updated_at", "2019-09-30 12:35:50.717317"]]
1208
+  (0.3ms) COMMIT
1209
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1210
+  (0.1ms) BEGIN
1211
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-09-30 12:35:50.724167"], ["key", "environment"]]
1212
+  (0.2ms) COMMIT
1213
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1214
+  (0.1ms) BEGIN
1215
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:35:50.728370"], ["updated_at", "2019-09-30 12:35:50.728370"]]
1216
+  (0.2ms) COMMIT
1217
+  (109.2ms) DROP DATABASE IF EXISTS "dummy_test"
1218
+  (236.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1219
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1220
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE
1221
+  (4.6ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp NOT NULL)
1222
+  (1.0ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
1223
+  (1.2ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
1224
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE
1225
+  (2.7ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "byte_size" bigint NOT NULL, "checksum" character varying NOT NULL, "created_at" timestamp NOT NULL)
1226
+  (0.9ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
1227
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_page_components" CASCADE
1228
+  (2.2ms) CREATE TABLE "cm_page_builder_rails_page_components" ("id" bigserial primary key, "uuid" character varying NOT NULL, "page_id" bigint NOT NULL, "content" character varying, "position" integer, "component_type" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1229
+  (0.8ms) CREATE INDEX "index_cm_page_builder_rails_page_components_on_page_id" ON "cm_page_builder_rails_page_components" ("page_id")
1230
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_pages" CASCADE
1231
+  (2.1ms) CREATE TABLE "cm_page_builder_rails_pages" ("id" bigserial primary key, "container_type" character varying NOT NULL, "container_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1232
+  (1.0ms) CREATE INDEX "container_composite_index" ON "cm_page_builder_rails_pages" ("container_type", "container_id")
1233
+  (0.1ms) DROP TABLE IF EXISTS "test_containers" CASCADE
1234
+  (3.1ms) CREATE TABLE "test_containers" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1235
+  (1.4ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1236
+ FOREIGN KEY ("blob_id")
1237
+ REFERENCES "active_storage_blobs" ("id")
1238
+ 
1239
+  (1.1ms) ALTER TABLE "cm_page_builder_rails_page_components" ADD CONSTRAINT "fk_rails_7fd23c6ccd"
1240
+ FOREIGN KEY ("page_id")
1241
+ REFERENCES "cm_page_builder_rails_pages" ("id")
1242
+ 
1243
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1244
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1245
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20190930120755)
1246
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
1247
+ (20190816103148),
1248
+ (20190816105056),
1249
+ (20190903110322),
1250
+ (20190930111315);
1251
+
1252
+ 
1253
+  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1254
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1255
+  (0.1ms) BEGIN
1256
+ ActiveRecord::InternalMetadata Create (0.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", "2019-09-30 12:36:09.304014"], ["updated_at", "2019-09-30 12:36:09.304014"]]
1257
+  (0.2ms) COMMIT
1258
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1259
+  (0.1ms) BEGIN
1260
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-09-30 12:36:09.309427"], ["key", "environment"]]
1261
+  (0.2ms) COMMIT
1262
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1263
+  (0.1ms) BEGIN
1264
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:36:09.313848"], ["updated_at", "2019-09-30 12:36:09.313848"]]
1265
+  (0.2ms) COMMIT
1266
+  (109.5ms) DROP DATABASE IF EXISTS "dummy_test"
1267
+  (235.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1268
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1269
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE
1270
+  (4.8ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp NOT NULL)
1271
+  (2.3ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
1272
+  (1.3ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
1273
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE
1274
+  (5.9ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "byte_size" bigint NOT NULL, "checksum" character varying NOT NULL, "created_at" timestamp NOT NULL)
1275
+  (0.9ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
1276
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_page_components" CASCADE
1277
+  (2.4ms) CREATE TABLE "cm_page_builder_rails_page_components" ("id" bigserial primary key, "uuid" character varying NOT NULL, "page_id" bigint NOT NULL, "content" character varying, "position" integer, "component_type" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1278
+  (0.9ms) CREATE INDEX "index_cm_page_builder_rails_page_components_on_page_id" ON "cm_page_builder_rails_page_components" ("page_id")
1279
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_pages" CASCADE
1280
+  (2.2ms) CREATE TABLE "cm_page_builder_rails_pages" ("id" bigserial primary key, "container_type" character varying NOT NULL, "container_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1281
+  (0.8ms) CREATE INDEX "container_composite_index" ON "cm_page_builder_rails_pages" ("container_type", "container_id")
1282
+  (0.1ms) DROP TABLE IF EXISTS "test_containers" CASCADE
1283
+  (2.5ms) CREATE TABLE "test_containers" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1284
+  (1.5ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1285
+ FOREIGN KEY ("blob_id")
1286
+ REFERENCES "active_storage_blobs" ("id")
1287
+ 
1288
+  (1.0ms) ALTER TABLE "cm_page_builder_rails_page_components" ADD CONSTRAINT "fk_rails_7fd23c6ccd"
1289
+ FOREIGN KEY ("page_id")
1290
+ REFERENCES "cm_page_builder_rails_pages" ("id")
1291
+ 
1292
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1293
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1294
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20190930120755)
1295
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
1296
+ (20190816103148),
1297
+ (20190816105056),
1298
+ (20190903110322),
1299
+ (20190930111315);
1300
+
1301
+ 
1302
+  (2.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1303
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1304
+  (0.1ms) BEGIN
1305
+ ActiveRecord::InternalMetadata Create (0.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", "2019-09-30 12:36:39.482938"], ["updated_at", "2019-09-30 12:36:39.482938"]]
1306
+  (0.2ms) COMMIT
1307
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1308
+  (0.1ms) BEGIN
1309
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-09-30 12:36:39.487894"], ["key", "environment"]]
1310
+  (0.2ms) COMMIT
1311
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1312
+  (0.1ms) BEGIN
1313
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:36:39.491992"], ["updated_at", "2019-09-30 12:36:39.491992"]]
1314
+  (0.2ms) COMMIT
1315
+  (112.9ms) DROP DATABASE IF EXISTS "dummy_test"
1316
+  (236.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1317
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1318
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE
1319
+  (8.1ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp NOT NULL)
1320
+  (2.2ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
1321
+  (2.1ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
1322
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE
1323
+  (4.0ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "byte_size" bigint NOT NULL, "checksum" character varying NOT NULL, "created_at" timestamp NOT NULL)
1324
+  (0.8ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
1325
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_page_components" CASCADE
1326
+  (2.6ms) CREATE TABLE "cm_page_builder_rails_page_components" ("id" bigserial primary key, "uuid" character varying NOT NULL, "page_id" bigint NOT NULL, "content" character varying, "position" integer, "component_type" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1327
+  (3.4ms) CREATE INDEX "index_cm_page_builder_rails_page_components_on_page_id" ON "cm_page_builder_rails_page_components" ("page_id")
1328
+  (0.2ms) DROP TABLE IF EXISTS "cm_page_builder_rails_pages" CASCADE
1329
+  (2.3ms) CREATE TABLE "cm_page_builder_rails_pages" ("id" bigserial primary key, "container_type" character varying NOT NULL, "container_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1330
+  (1.4ms) CREATE INDEX "container_composite_index" ON "cm_page_builder_rails_pages" ("container_type", "container_id")
1331
+  (0.8ms) DROP TABLE IF EXISTS "test_containers" CASCADE
1332
+  (7.3ms) CREATE TABLE "test_containers" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1333
+  (1.9ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1334
+ FOREIGN KEY ("blob_id")
1335
+ REFERENCES "active_storage_blobs" ("id")
1336
+ 
1337
+  (2.6ms) ALTER TABLE "cm_page_builder_rails_page_components" ADD CONSTRAINT "fk_rails_7fd23c6ccd"
1338
+ FOREIGN KEY ("page_id")
1339
+ REFERENCES "cm_page_builder_rails_pages" ("id")
1340
+ 
1341
+  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1342
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1343
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20190930120755)
1344
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES
1345
+ (20190816103148),
1346
+ (20190816105056),
1347
+ (20190903110322),
1348
+ (20190930111315);
1349
+
1350
+ 
1351
+  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1352
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1353
+  (1.3ms) BEGIN
1354
+ ActiveRecord::InternalMetadata Create (0.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", "2019-09-30 12:38:39.416508"], ["updated_at", "2019-09-30 12:38:39.416508"]]
1355
+  (1.0ms) COMMIT
1356
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1357
+  (0.3ms) BEGIN
1358
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-09-30 12:38:39.427794"], ["key", "environment"]]
1359
+  (0.3ms) COMMIT
1360
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1361
+  (0.1ms) BEGIN
1362
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:38:39.436021"], ["updated_at", "2019-09-30 12:38:39.436021"]]
1363
+  (0.2ms) COMMIT
1364
+  (112.5ms) DROP DATABASE IF EXISTS "dummy_test"
1365
+  (243.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1366
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1367
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE
1368
+  (5.6ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp NOT NULL)
1369
+  (1.0ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
1370
+  (1.3ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
1371
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE
1372
+  (2.9ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "byte_size" bigint NOT NULL, "checksum" character varying NOT NULL, "created_at" timestamp NOT NULL)
1373
+  (1.0ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
1374
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_page_components" CASCADE
1375
+  (3.0ms) CREATE TABLE "cm_page_builder_rails_page_components" ("id" bigserial primary key, "uuid" character varying NOT NULL, "page_id" bigint NOT NULL, "content" character varying, "position" integer, "component_type" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1376
+  (0.9ms) CREATE INDEX "index_cm_page_builder_rails_page_components_on_page_id" ON "cm_page_builder_rails_page_components" ("page_id")
1377
+  (0.1ms) DROP TABLE IF EXISTS "cm_page_builder_rails_pages" CASCADE
1378
+  (2.8ms) CREATE TABLE "cm_page_builder_rails_pages" ("id" bigserial primary key, "container_type" character varying NOT NULL, "container_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1379
+  (1.0ms) CREATE INDEX "container_composite_index" ON "cm_page_builder_rails_pages" ("container_type", "container_id")
1380
+  (0.1ms) DROP TABLE IF EXISTS "test_containers" CASCADE
1381
+  (3.1ms) CREATE TABLE "test_containers" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1382
+  (1.9ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1383
+ FOREIGN KEY ("blob_id")
1384
+ REFERENCES "active_storage_blobs" ("id")
1385
+ 
1386
+  (1.3ms) ALTER TABLE "cm_page_builder_rails_page_components" ADD CONSTRAINT "fk_rails_7fd23c6ccd"
1387
+ FOREIGN KEY ("page_id")
1388
+ REFERENCES "cm_page_builder_rails_pages" ("id")
1389
+ 
1390
+  (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1391
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1392
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20190930120755)
1393
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES
1394
+ (20190816103148),
1395
+ (20190816105056),
1396
+ (20190903110322),
1397
+ (20190930111315);
1398
+
1399
+ 
1400
+  (1.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1401
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1402
+  (0.1ms) BEGIN
1403
+ ActiveRecord::InternalMetadata Create (0.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", "2019-09-30 12:39:05.656135"], ["updated_at", "2019-09-30 12:39:05.656135"]]
1404
+  (0.2ms) COMMIT
1405
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1406
+  (0.1ms) BEGIN
1407
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-09-30 12:39:05.661384"], ["key", "environment"]]
1408
+  (0.2ms) COMMIT
1409
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1410
+  (0.1ms) BEGIN
1411
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:39:05.665806"], ["updated_at", "2019-09-30 12:39:05.665806"]]
1412
+  (0.2ms) COMMIT
1413
+  (5006.5ms) DROP DATABASE IF EXISTS "dummy_test"
1414
+  (5006.0ms) DROP DATABASE IF EXISTS "dummy_test"
1415
+  (5006.8ms) DROP DATABASE IF EXISTS "dummy_test"
1416
+  (113.5ms) DROP DATABASE IF EXISTS "dummy_test"
1417
+  (243.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1418
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1419
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE
1420
+  (7.0ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp NOT NULL)
1421
+  (1.2ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
1422
+  (1.5ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
1423
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE
1424
+  (3.2ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "byte_size" bigint NOT NULL, "checksum" character varying NOT NULL, "created_at" timestamp NOT NULL)
1425
+  (1.0ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
1426
+  (0.2ms) DROP TABLE IF EXISTS "cm_page_builder_rails_page_components" CASCADE
1427
+  (4.1ms) CREATE TABLE "cm_page_builder_rails_page_components" ("id" bigserial primary key, "uuid" character varying NOT NULL, "page_id" bigint NOT NULL, "content" character varying, "position" integer, "component_type" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1428
+  (1.1ms) CREATE INDEX "index_cm_page_builder_rails_page_components_on_page_id" ON "cm_page_builder_rails_page_components" ("page_id")
1429
+  (0.2ms) DROP TABLE IF EXISTS "cm_page_builder_rails_pages" CASCADE
1430
+  (3.1ms) CREATE TABLE "cm_page_builder_rails_pages" ("id" bigserial primary key, "container_type" character varying NOT NULL, "container_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1431
+  (1.1ms) CREATE INDEX "container_composite_index" ON "cm_page_builder_rails_pages" ("container_type", "container_id")
1432
+  (0.2ms) DROP TABLE IF EXISTS "test_containers" CASCADE
1433
+  (3.3ms) CREATE TABLE "test_containers" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1434
+  (2.0ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1435
+ FOREIGN KEY ("blob_id")
1436
+ REFERENCES "active_storage_blobs" ("id")
1437
+ 
1438
+  (3.1ms) ALTER TABLE "cm_page_builder_rails_page_components" ADD CONSTRAINT "fk_rails_7fd23c6ccd"
1439
+ FOREIGN KEY ("page_id")
1440
+ REFERENCES "cm_page_builder_rails_pages" ("id")
1441
+ 
1442
+  (8.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1443
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1444
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (20190930120755)
1445
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES
1446
+ (20190816103148),
1447
+ (20190816105056),
1448
+ (20190903110322),
1449
+ (20190930111315);
1450
+
1451
+ 
1452
+  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1453
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1454
+  (0.1ms) BEGIN
1455
+ ActiveRecord::InternalMetadata Create (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", "2019-09-30 12:45:09.823002"], ["updated_at", "2019-09-30 12:45:09.823002"]]
1456
+  (0.3ms) COMMIT
1457
+ 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]]
1458
+  (0.1ms) BEGIN
1459
+ ActiveRecord::InternalMetadata Update (0.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-09-30 12:45:09.831929"], ["key", "environment"]]
1460
+  (0.3ms) COMMIT
1461
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1462
+  (0.1ms) BEGIN
1463
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c207cb589938ec7a1aa8a58d8e0fb0a7a557fb2c"], ["created_at", "2019-09-30 12:45:09.840080"], ["updated_at", "2019-09-30 12:45:09.840080"]]
1464
+  (0.2ms) COMMIT
@@ -340,3 +340,320 @@ FOREIGN KEY ("blob_id")
340
340
   (0.1ms) RELEASE SAVEPOINT active_record_1
341
341
   (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
342
342
   (0.1ms) ROLLBACK
343
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
344
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
345
+  (0.1ms) BEGIN
346
+  (0.1ms) SAVEPOINT active_record_1
347
+ TestContainer Create (0.6ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:35:52.247374"], ["updated_at", "2019-09-30 12:35:52.247374"]]
348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
349
+  (0.1ms) SAVEPOINT active_record_1
350
+ CmPageBuilder::Rails::Page Create (0.4ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 1], ["created_at", "2019-09-30 12:35:52.261818"], ["updated_at", "2019-09-30 12:35:52.261818"]]
351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
352
+ CmPageBuilder::Rails::PageComponent Destroy (0.8ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 1], ["uuid", "abcdef"]]
353
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 1], ["uuid", "abcdef"], ["LIMIT", 1]]
354
+  (0.1ms) SAVEPOINT active_record_1
355
+ CmPageBuilder::Rails::PageComponent Create (6.0ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 1], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:35:52.283260"], ["updated_at", "2019-09-30 12:35:52.283260"]]
356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
357
+  (0.3ms) SELECT COUNT(*) FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 [["page_id", 1]]
358
+  (0.1ms) ROLLBACK
359
+  (0.1ms) BEGIN
360
+  (0.1ms) SAVEPOINT active_record_1
361
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:35:52.293013"], ["updated_at", "2019-09-30 12:35:52.293013"]]
362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363
+  (0.1ms) SAVEPOINT active_record_1
364
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:35:52.294506"], ["updated_at", "2019-09-30 12:35:52.294506"]]
365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
366
+ CmPageBuilder::Rails::PageComponent Destroy (0.5ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 2], ["uuid", "abcdef"]]
367
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 2], ["uuid", "abcdef"], ["LIMIT", 1]]
368
+  (0.1ms) SAVEPOINT active_record_1
369
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 2], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:35:52.298033"], ["updated_at", "2019-09-30 12:35:52.298033"]]
370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
371
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC [["page_id", 2]]
372
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 2], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
373
+  (0.1ms) SAVEPOINT active_record_1
374
+ TestContainer Load (0.2ms) SELECT "test_containers".* FROM "test_containers" WHERE "test_containers"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
375
+ CmPageBuilder::Rails::Page Load (0.6ms) SELECT "cm_page_builder_rails_pages".* FROM "cm_page_builder_rails_pages" WHERE "cm_page_builder_rails_pages"."container_id" = $1 AND "cm_page_builder_rails_pages"."container_type" = $2 LIMIT $3 [["container_id", 2], ["container_type", "TestContainer"], ["LIMIT", 1]]
376
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:35:52.313798"], ["updated_at", "2019-09-30 12:35:52.313798"]]
377
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 3], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:35:52.314978"], ["updated_at", "2019-09-30 12:35:52.314978"]]
378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
379
+  (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
380
+  (0.1ms) ROLLBACK
381
+  (0.1ms) BEGIN
382
+  (0.1ms) SAVEPOINT active_record_1
383
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:35:52.318029"], ["updated_at", "2019-09-30 12:35:52.318029"]]
384
+  (0.1ms) RELEASE SAVEPOINT active_record_1
385
+  (0.1ms) SAVEPOINT active_record_1
386
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 3], ["created_at", "2019-09-30 12:35:52.319585"], ["updated_at", "2019-09-30 12:35:52.319585"]]
387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
388
+ CmPageBuilder::Rails::PageComponent Destroy (0.4ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 4], ["uuid", "abcdef"]]
389
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 4], ["uuid", "abcdef"], ["LIMIT", 1]]
390
+  (0.1ms) SAVEPOINT active_record_1
391
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 4], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:35:52.323101"], ["updated_at", "2019-09-30 12:35:52.323101"]]
392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
393
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $2 [["page_id", 4], ["LIMIT", 1]]
394
+  (0.1ms) ROLLBACK
395
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
396
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
397
+  (0.1ms) BEGIN
398
+  (0.1ms) SAVEPOINT active_record_1
399
+ TestContainer Create (0.5ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:36:10.827199"], ["updated_at", "2019-09-30 12:36:10.827199"]]
400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
401
+  (0.1ms) SAVEPOINT active_record_1
402
+ CmPageBuilder::Rails::Page Create (0.5ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 1], ["created_at", "2019-09-30 12:36:10.842833"], ["updated_at", "2019-09-30 12:36:10.842833"]]
403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
404
+ CmPageBuilder::Rails::PageComponent Destroy (0.6ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 1], ["uuid", "abcdef"]]
405
+ CmPageBuilder::Rails::PageComponent Load (0.1ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 1], ["uuid", "abcdef"], ["LIMIT", 1]]
406
+  (0.1ms) SAVEPOINT active_record_1
407
+ CmPageBuilder::Rails::PageComponent Create (0.5ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 1], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:10.863978"], ["updated_at", "2019-09-30 12:36:10.863978"]]
408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
409
+  (0.3ms) SELECT COUNT(*) FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 [["page_id", 1]]
410
+  (0.1ms) ROLLBACK
411
+  (0.1ms) BEGIN
412
+  (0.1ms) SAVEPOINT active_record_1
413
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:36:10.875946"], ["updated_at", "2019-09-30 12:36:10.875946"]]
414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
415
+  (0.1ms) SAVEPOINT active_record_1
416
+ CmPageBuilder::Rails::Page Create (0.3ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:36:10.877609"], ["updated_at", "2019-09-30 12:36:10.877609"]]
417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
418
+ CmPageBuilder::Rails::PageComponent Destroy (0.3ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 2], ["uuid", "abcdef"]]
419
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 2], ["uuid", "abcdef"], ["LIMIT", 1]]
420
+  (0.1ms) SAVEPOINT active_record_1
421
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 2], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:10.881467"], ["updated_at", "2019-09-30 12:36:10.881467"]]
422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
423
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC [["page_id", 2]]
424
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 2], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
425
+  (0.1ms) SAVEPOINT active_record_1
426
+ TestContainer Load (0.2ms) SELECT "test_containers".* FROM "test_containers" WHERE "test_containers"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
427
+ CmPageBuilder::Rails::Page Load (0.2ms) SELECT "cm_page_builder_rails_pages".* FROM "cm_page_builder_rails_pages" WHERE "cm_page_builder_rails_pages"."container_id" = $1 AND "cm_page_builder_rails_pages"."container_type" = $2 LIMIT $3 [["container_id", 2], ["container_type", "TestContainer"], ["LIMIT", 1]]
428
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:36:10.894883"], ["updated_at", "2019-09-30 12:36:10.894883"]]
429
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 3], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:10.895826"], ["updated_at", "2019-09-30 12:36:10.895826"]]
430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
431
+  (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
432
+  (0.1ms) ROLLBACK
433
+  (0.1ms) BEGIN
434
+  (0.1ms) SAVEPOINT active_record_1
435
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:36:10.898779"], ["updated_at", "2019-09-30 12:36:10.898779"]]
436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
437
+  (0.1ms) SAVEPOINT active_record_1
438
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 3], ["created_at", "2019-09-30 12:36:10.900254"], ["updated_at", "2019-09-30 12:36:10.900254"]]
439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
440
+ CmPageBuilder::Rails::PageComponent Destroy (0.3ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 4], ["uuid", "abcdef"]]
441
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 4], ["uuid", "abcdef"], ["LIMIT", 1]]
442
+  (0.1ms) SAVEPOINT active_record_1
443
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 4], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:10.904455"], ["updated_at", "2019-09-30 12:36:10.904455"]]
444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
445
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $2 [["page_id", 4], ["LIMIT", 1]]
446
+  (0.1ms) ROLLBACK
447
+  (2.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
448
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
449
+  (0.1ms) BEGIN
450
+  (0.1ms) SAVEPOINT active_record_1
451
+ TestContainer Create (0.4ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:36:41.022939"], ["updated_at", "2019-09-30 12:36:41.022939"]]
452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
453
+  (0.1ms) SAVEPOINT active_record_1
454
+ CmPageBuilder::Rails::Page Create (0.6ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 1], ["created_at", "2019-09-30 12:36:41.040722"], ["updated_at", "2019-09-30 12:36:41.040722"]]
455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
456
+ CmPageBuilder::Rails::PageComponent Destroy (0.6ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 1], ["uuid", "abcdef"]]
457
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 1], ["uuid", "abcdef"], ["LIMIT", 1]]
458
+  (0.1ms) SAVEPOINT active_record_1
459
+ CmPageBuilder::Rails::PageComponent Create (0.5ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 1], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:41.076887"], ["updated_at", "2019-09-30 12:36:41.076887"]]
460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
461
+  (0.3ms) SELECT COUNT(*) FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 [["page_id", 1]]
462
+  (0.1ms) ROLLBACK
463
+  (0.1ms) BEGIN
464
+  (0.1ms) SAVEPOINT active_record_1
465
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:36:41.082501"], ["updated_at", "2019-09-30 12:36:41.082501"]]
466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
467
+  (0.1ms) SAVEPOINT active_record_1
468
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:36:41.084702"], ["updated_at", "2019-09-30 12:36:41.084702"]]
469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
470
+ CmPageBuilder::Rails::PageComponent Destroy (0.3ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 2], ["uuid", "abcdef"]]
471
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 2], ["uuid", "abcdef"], ["LIMIT", 1]]
472
+  (0.1ms) SAVEPOINT active_record_1
473
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 2], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:41.089811"], ["updated_at", "2019-09-30 12:36:41.089811"]]
474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
475
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC [["page_id", 2]]
476
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 2], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
477
+  (0.1ms) SAVEPOINT active_record_1
478
+ TestContainer Load (0.1ms) SELECT "test_containers".* FROM "test_containers" WHERE "test_containers"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
479
+ CmPageBuilder::Rails::Page Load (0.2ms) SELECT "cm_page_builder_rails_pages".* FROM "cm_page_builder_rails_pages" WHERE "cm_page_builder_rails_pages"."container_id" = $1 AND "cm_page_builder_rails_pages"."container_type" = $2 LIMIT $3 [["container_id", 2], ["container_type", "TestContainer"], ["LIMIT", 1]]
480
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:36:41.122465"], ["updated_at", "2019-09-30 12:36:41.122465"]]
481
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 3], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:41.123411"], ["updated_at", "2019-09-30 12:36:41.123411"]]
482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
483
+  (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
484
+  (0.1ms) ROLLBACK
485
+  (0.1ms) BEGIN
486
+  (0.1ms) SAVEPOINT active_record_1
487
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:36:41.126667"], ["updated_at", "2019-09-30 12:36:41.126667"]]
488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
489
+  (0.1ms) SAVEPOINT active_record_1
490
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 3], ["created_at", "2019-09-30 12:36:41.128197"], ["updated_at", "2019-09-30 12:36:41.128197"]]
491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
492
+ CmPageBuilder::Rails::PageComponent Destroy (0.4ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 4], ["uuid", "abcdef"]]
493
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 4], ["uuid", "abcdef"], ["LIMIT", 1]]
494
+  (0.1ms) SAVEPOINT active_record_1
495
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 4], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:36:41.131835"], ["updated_at", "2019-09-30 12:36:41.131835"]]
496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
497
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $2 [["page_id", 4], ["LIMIT", 1]]
498
+  (0.1ms) ROLLBACK
499
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
500
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
501
+  (0.1ms) BEGIN
502
+  (0.1ms) SAVEPOINT active_record_1
503
+ TestContainer Create (0.6ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:38:41.492986"], ["updated_at", "2019-09-30 12:38:41.492986"]]
504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
505
+  (0.1ms) SAVEPOINT active_record_1
506
+ CmPageBuilder::Rails::Page Create (0.5ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 1], ["created_at", "2019-09-30 12:38:41.516102"], ["updated_at", "2019-09-30 12:38:41.516102"]]
507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
508
+ CmPageBuilder::Rails::PageComponent Destroy (0.8ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 1], ["uuid", "abcdef"]]
509
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 1], ["uuid", "abcdef"], ["LIMIT", 1]]
510
+  (0.1ms) SAVEPOINT active_record_1
511
+ CmPageBuilder::Rails::PageComponent Create (0.6ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 1], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:38:41.557311"], ["updated_at", "2019-09-30 12:38:41.557311"]]
512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
513
+  (0.3ms) SELECT COUNT(*) FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 [["page_id", 1]]
514
+  (0.1ms) ROLLBACK
515
+  (0.1ms) BEGIN
516
+  (0.1ms) SAVEPOINT active_record_1
517
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:38:41.563458"], ["updated_at", "2019-09-30 12:38:41.563458"]]
518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
519
+  (0.1ms) SAVEPOINT active_record_1
520
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:38:41.565986"], ["updated_at", "2019-09-30 12:38:41.565986"]]
521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
522
+ CmPageBuilder::Rails::PageComponent Destroy (0.4ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 2], ["uuid", "abcdef"]]
523
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 2], ["uuid", "abcdef"], ["LIMIT", 1]]
524
+  (0.1ms) SAVEPOINT active_record_1
525
+ CmPageBuilder::Rails::PageComponent Create (0.4ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 2], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:38:41.571309"], ["updated_at", "2019-09-30 12:38:41.571309"]]
526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
527
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC [["page_id", 2]]
528
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 2], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
529
+  (0.1ms) SAVEPOINT active_record_1
530
+ TestContainer Load (0.2ms) SELECT "test_containers".* FROM "test_containers" WHERE "test_containers"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
531
+ CmPageBuilder::Rails::Page Load (0.2ms) SELECT "cm_page_builder_rails_pages".* FROM "cm_page_builder_rails_pages" WHERE "cm_page_builder_rails_pages"."container_id" = $1 AND "cm_page_builder_rails_pages"."container_type" = $2 LIMIT $3 [["container_id", 2], ["container_type", "TestContainer"], ["LIMIT", 1]]
532
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:38:41.604403"], ["updated_at", "2019-09-30 12:38:41.604403"]]
533
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 3], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:38:41.605591"], ["updated_at", "2019-09-30 12:38:41.605591"]]
534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
535
+  (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
536
+  (0.1ms) ROLLBACK
537
+  (0.1ms) BEGIN
538
+  (0.1ms) SAVEPOINT active_record_1
539
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:38:41.609477"], ["updated_at", "2019-09-30 12:38:41.609477"]]
540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
541
+  (0.1ms) SAVEPOINT active_record_1
542
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 3], ["created_at", "2019-09-30 12:38:41.611307"], ["updated_at", "2019-09-30 12:38:41.611307"]]
543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
544
+ CmPageBuilder::Rails::PageComponent Destroy (0.3ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 4], ["uuid", "abcdef"]]
545
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 4], ["uuid", "abcdef"], ["LIMIT", 1]]
546
+  (0.1ms) SAVEPOINT active_record_1
547
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 4], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:38:41.615887"], ["updated_at", "2019-09-30 12:38:41.615887"]]
548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
549
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $2 [["page_id", 4], ["LIMIT", 1]]
550
+  (0.2ms) SAVEPOINT active_record_1
551
+ ActiveStorage::Blob Load (0.4ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 4], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
552
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
553
+  (0.1ms) ROLLBACK
554
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
555
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
556
+  (0.1ms) BEGIN
557
+  (0.1ms) SAVEPOINT active_record_1
558
+ TestContainer Create (0.5ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:39:07.242163"], ["updated_at", "2019-09-30 12:39:07.242163"]]
559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
560
+  (0.1ms) SAVEPOINT active_record_1
561
+ CmPageBuilder::Rails::Page Create (0.5ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 1], ["created_at", "2019-09-30 12:39:07.252254"], ["updated_at", "2019-09-30 12:39:07.252254"]]
562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
563
+ CmPageBuilder::Rails::PageComponent Destroy (0.6ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 1], ["uuid", "abcdef"]]
564
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 1], ["uuid", "abcdef"], ["LIMIT", 1]]
565
+  (0.1ms) SAVEPOINT active_record_1
566
+ CmPageBuilder::Rails::PageComponent Create (0.6ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 1], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:39:07.276711"], ["updated_at", "2019-09-30 12:39:07.276711"]]
567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
568
+  (0.3ms) SELECT COUNT(*) FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 [["page_id", 1]]
569
+  (0.1ms) ROLLBACK
570
+  (0.1ms) BEGIN
571
+  (0.1ms) SAVEPOINT active_record_1
572
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:39:07.281959"], ["updated_at", "2019-09-30 12:39:07.281959"]]
573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+  (0.1ms) SAVEPOINT active_record_1
575
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:39:07.283892"], ["updated_at", "2019-09-30 12:39:07.283892"]]
576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
577
+ CmPageBuilder::Rails::PageComponent Destroy (0.3ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 2], ["uuid", "abcdef"]]
578
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 2], ["uuid", "abcdef"], ["LIMIT", 1]]
579
+  (0.1ms) SAVEPOINT active_record_1
580
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 2], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:39:07.288084"], ["updated_at", "2019-09-30 12:39:07.288084"]]
581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
582
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC [["page_id", 2]]
583
+ ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 2], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
584
+  (0.1ms) SAVEPOINT active_record_1
585
+ TestContainer Load (0.2ms) SELECT "test_containers".* FROM "test_containers" WHERE "test_containers"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
586
+ CmPageBuilder::Rails::Page Load (0.2ms) SELECT "cm_page_builder_rails_pages".* FROM "cm_page_builder_rails_pages" WHERE "cm_page_builder_rails_pages"."container_id" = $1 AND "cm_page_builder_rails_pages"."container_type" = $2 LIMIT $3 [["container_id", 2], ["container_type", "TestContainer"], ["LIMIT", 1]]
587
+ CmPageBuilder::Rails::Page Create (0.3ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:39:07.315795"], ["updated_at", "2019-09-30 12:39:07.315795"]]
588
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 3], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:39:07.317100"], ["updated_at", "2019-09-30 12:39:07.317100"]]
589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
590
+  (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
591
+  (0.1ms) ROLLBACK
592
+  (0.1ms) BEGIN
593
+  (0.1ms) SAVEPOINT active_record_1
594
+ TestContainer Create (0.2ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:39:07.320925"], ["updated_at", "2019-09-30 12:39:07.320925"]]
595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
596
+  (0.1ms) SAVEPOINT active_record_1
597
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 3], ["created_at", "2019-09-30 12:39:07.322727"], ["updated_at", "2019-09-30 12:39:07.322727"]]
598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
599
+ CmPageBuilder::Rails::PageComponent Destroy (0.3ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 4], ["uuid", "abcdef"]]
600
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 4], ["uuid", "abcdef"], ["LIMIT", 1]]
601
+  (0.1ms) SAVEPOINT active_record_1
602
+ CmPageBuilder::Rails::PageComponent Create (0.3ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 4], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:39:07.326890"], ["updated_at", "2019-09-30 12:39:07.326890"]]
603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
604
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $2 [["page_id", 4], ["LIMIT", 1]]
605
+  (0.1ms) SAVEPOINT active_record_1
606
+ ActiveStorage::Blob Load (0.4ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 4], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
607
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
608
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
609
+  (0.1ms) BEGIN
610
+  (0.1ms) SAVEPOINT active_record_1
611
+ TestContainer Create (0.6ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:45:12.140873"], ["updated_at", "2019-09-30 12:45:12.140873"]]
612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
613
+  (0.2ms) SAVEPOINT active_record_1
614
+ CmPageBuilder::Rails::Page Create (0.7ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 1], ["created_at", "2019-09-30 12:45:12.160923"], ["updated_at", "2019-09-30 12:45:12.160923"]]
615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
616
+ CmPageBuilder::Rails::PageComponent Destroy (0.8ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 1], ["uuid", "abcdef"]]
617
+ CmPageBuilder::Rails::PageComponent Load (1.0ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 1], ["uuid", "abcdef"], ["LIMIT", 1]]
618
+  (0.2ms) SAVEPOINT active_record_1
619
+ CmPageBuilder::Rails::PageComponent Create (0.9ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 1], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:45:12.195406"], ["updated_at", "2019-09-30 12:45:12.195406"]]
620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
621
+  (0.4ms) SELECT COUNT(*) FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 [["page_id", 1]]
622
+  (0.2ms) ROLLBACK
623
+  (0.1ms) BEGIN
624
+  (0.2ms) SAVEPOINT active_record_1
625
+ TestContainer Create (0.3ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:45:12.213526"], ["updated_at", "2019-09-30 12:45:12.213526"]]
626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
627
+  (0.1ms) SAVEPOINT active_record_1
628
+ CmPageBuilder::Rails::Page Create (0.3ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:45:12.215763"], ["updated_at", "2019-09-30 12:45:12.215763"]]
629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
630
+ CmPageBuilder::Rails::PageComponent Destroy (0.6ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 2], ["uuid", "abcdef"]]
631
+ CmPageBuilder::Rails::PageComponent Load (1.5ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 2], ["uuid", "abcdef"], ["LIMIT", 1]]
632
+  (0.1ms) SAVEPOINT active_record_1
633
+ CmPageBuilder::Rails::PageComponent Create (0.4ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 2], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:45:12.224175"], ["updated_at", "2019-09-30 12:45:12.224175"]]
634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
635
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC [["page_id", 2]]
636
+ ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 2], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
637
+  (0.1ms) SAVEPOINT active_record_1
638
+ TestContainer Load (0.2ms) SELECT "test_containers".* FROM "test_containers" WHERE "test_containers"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
639
+ CmPageBuilder::Rails::Page Load (0.3ms) SELECT "cm_page_builder_rails_pages".* FROM "cm_page_builder_rails_pages" WHERE "cm_page_builder_rails_pages"."container_id" = $1 AND "cm_page_builder_rails_pages"."container_type" = $2 LIMIT $3 [["container_id", 2], ["container_type", "TestContainer"], ["LIMIT", 1]]
640
+ CmPageBuilder::Rails::Page Create (0.3ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 2], ["created_at", "2019-09-30 12:45:12.240310"], ["updated_at", "2019-09-30 12:45:12.240310"]]
641
+ CmPageBuilder::Rails::PageComponent Create (0.4ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 3], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:45:12.241666"], ["updated_at", "2019-09-30 12:45:12.241666"]]
642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
643
+  (0.2ms) SELECT COUNT(*) FROM "cm_page_builder_rails_pages"
644
+  (0.1ms) ROLLBACK
645
+  (0.1ms) BEGIN
646
+  (0.1ms) SAVEPOINT active_record_1
647
+ TestContainer Create (0.3ms) INSERT INTO "test_containers" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Tester"], ["created_at", "2019-09-30 12:45:12.245934"], ["updated_at", "2019-09-30 12:45:12.245934"]]
648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
649
+  (0.1ms) SAVEPOINT active_record_1
650
+ CmPageBuilder::Rails::Page Create (0.2ms) INSERT INTO "cm_page_builder_rails_pages" ("container_type", "container_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["container_type", "TestContainer"], ["container_id", 3], ["created_at", "2019-09-30 12:45:12.248013"], ["updated_at", "2019-09-30 12:45:12.248013"]]
651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
652
+ CmPageBuilder::Rails::PageComponent Destroy (0.4ms) DELETE FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."id" IN (SELECT "cm_page_builder_rails_page_components"."id" FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" != $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC) [["page_id", 4], ["uuid", "abcdef"]]
653
+ CmPageBuilder::Rails::PageComponent Load (0.2ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 AND "cm_page_builder_rails_page_components"."uuid" = $2 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $3 [["page_id", 4], ["uuid", "abcdef"], ["LIMIT", 1]]
654
+  (0.1ms) SAVEPOINT active_record_1
655
+ CmPageBuilder::Rails::PageComponent Create (0.4ms) INSERT INTO "cm_page_builder_rails_page_components" ("uuid", "page_id", "content", "position", "component_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uuid", "abcdef"], ["page_id", 4], ["content", "here is some content"], ["position", 2], ["component_type", "Text"], ["created_at", "2019-09-30 12:45:12.253056"], ["updated_at", "2019-09-30 12:45:12.253056"]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+ CmPageBuilder::Rails::PageComponent Load (0.3ms) SELECT "cm_page_builder_rails_page_components".* FROM "cm_page_builder_rails_page_components" WHERE "cm_page_builder_rails_page_components"."page_id" = $1 ORDER BY "cm_page_builder_rails_page_components"."position" ASC LIMIT $2 [["page_id", 4], ["LIMIT", 1]]
658
+  (0.1ms) SAVEPOINT active_record_1
659
+ ActiveStorage::Blob Load (0.6ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 4], ["record_type", "CmPageBuilder::Rails::PageComponent"], ["name", "component_attachment"], ["LIMIT", 1]]
@@ -36,6 +36,15 @@ module CmPageBuilder::Rails
36
36
  expect(dup_page.page_components.size).to eq(1)
37
37
  expect(dup_page.page_components.first.content).to eq("here is some content")
38
38
  end
39
+
40
+ it 'can handle images' do
41
+ test_container = TestContainer.create(name: "Tester")
42
+ page = Page.create!(container: test_container)
43
+ page.save_content COMPONENTS
44
+
45
+ # page.page_components.first.component_attachment.attach(io: file_fixture("commutatus_logo.png"), filename: "commutatus_logo.png")
46
+ # pp page.page_components.first.component_attachment.metadata
47
+ end
39
48
  end
40
49
 
41
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm_page_builder-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Ernesto Forero Junco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -164,6 +164,7 @@ files:
164
164
  - spec/dummy/public/favicon.ico
165
165
  - spec/dummy/spec/models/test_container_spec.rb
166
166
  - spec/dummy/tmp/development_secret.txt
167
+ - spec/fixtures/files/commutatus_logo.png
167
168
  - spec/models/cm_page_builder/rails/page_spec.rb
168
169
  - spec/rails_helper.rb
169
170
  - spec/spec_helper.rb
@@ -246,3 +247,4 @@ test_files:
246
247
  - spec/rails_helper.rb
247
248
  - spec/models/cm_page_builder/rails/page_spec.rb
248
249
  - spec/spec_helper.rb
250
+ - spec/fixtures/files/commutatus_logo.png