bit_core 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1174,3 +1174,2247 @@ Migrating to CreateBitCoreSlides (20140417174159)
1174
1174
   (0.2ms) ROLLBACK
1175
1175
   (0.1ms) BEGIN
1176
1176
   (0.1ms) ROLLBACK
1177
+  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1178
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1179
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1180
+ Migrating to CreateBitCoreTools (20140415210052)
1181
+  (0.2ms) BEGIN
1182
+  (5.1ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1183
+  (2.4ms) ALTER TABLE bit_core_tools
1184
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1185
+ DEFERRABLE INITIALLY IMMEDIATE
1186
+
1187
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1188
+  (0.6ms) COMMIT
1189
+ Migrating to CreateBitCoreContentModules (20140415211458)
1190
+  (0.4ms) BEGIN
1191
+  (3.8ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1192
+  (1.7ms)  ALTER TABLE bit_core_content_modules
1193
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1194
+ DEFERRABLE INITIALLY IMMEDIATE
1195
+ 
1196
+  (2.9ms) ALTER TABLE bit_core_content_modules
1197
+ ADD CONSTRAINT fk_content_modules_tools
1198
+ FOREIGN KEY (bit_core_tool_id)
1199
+ REFERENCES bit_core_tools(id)
1200
+
1201
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1202
+  (0.7ms) COMMIT
1203
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1204
+  (0.5ms) BEGIN
1205
+  (6.3ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1206
+  (1.6ms)  ALTER TABLE bit_core_content_providers
1207
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1208
+ DEFERRABLE INITIALLY IMMEDIATE
1209
+ 
1210
+  (2.2ms) ALTER TABLE bit_core_content_providers
1211
+ ADD CONSTRAINT fk_content_providers_modules
1212
+ FOREIGN KEY (bit_core_content_module_id)
1213
+ REFERENCES bit_core_content_modules(id)
1214
+
1215
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1216
+  (0.7ms) COMMIT
1217
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1218
+  (0.5ms) BEGIN
1219
+  (6.1ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1220
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1221
+  (0.5ms) COMMIT
1222
+ Migrating to CreateBitCoreSlides (20140417174159)
1223
+  (0.3ms) BEGIN
1224
+  (5.5ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1225
+  (1.6ms)  ALTER TABLE bit_core_slides
1226
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1227
+ DEFERRABLE INITIALLY IMMEDIATE
1228
+ 
1229
+  (2.0ms) ALTER TABLE bit_core_slides
1230
+ ADD CONSTRAINT fk_slideshows_slides
1231
+ FOREIGN KEY (bit_core_slideshow_id)
1232
+ REFERENCES bit_core_slideshows(id)
1233
+
1234
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1235
+  (0.7ms) COMMIT
1236
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1237
+  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1238
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_950932" is a system trigger
1239
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1240
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1241
+  (0.3ms) BEGIN
1242
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
1243
+ Fixture Insert (2.1ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:29:39', '2014-06-20 16:29:39', 504123193)
1244
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slides"
1245
+ Fixture Insert (3.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:29:39', '2014-06-20 16:29:39', 538050605, 504123193)
1246
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:29:39', '2014-06-20 16:29:39', 958091673, 504123193)
1247
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:29:39', '2014-06-20 16:29:39', 236740868, 504123193)
1248
+  (0.4ms) COMMIT
1249
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1250
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_950932" is a system trigger
1251
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1252
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1253
+  (0.1ms) BEGIN
1254
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1255
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1256
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1257
+  (0.2ms) ROLLBACK
1258
+  (0.2ms) BEGIN
1259
+  (0.3ms) ROLLBACK
1260
+  (0.2ms) BEGIN
1261
+  (0.3ms) ROLLBACK
1262
+  (0.1ms) BEGIN
1263
+  (0.2ms) ROLLBACK
1264
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1265
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1266
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1267
+ Migrating to CreateBitCoreTools (20140415210052)
1268
+  (0.3ms) BEGIN
1269
+  (5.2ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1270
+  (2.3ms) ALTER TABLE bit_core_tools
1271
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1272
+ DEFERRABLE INITIALLY IMMEDIATE
1273
+
1274
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1275
+  (0.7ms) COMMIT
1276
+ Migrating to CreateBitCoreContentModules (20140415211458)
1277
+  (0.4ms) BEGIN
1278
+  (3.8ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1279
+  (1.9ms)  ALTER TABLE bit_core_content_modules
1280
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1281
+ DEFERRABLE INITIALLY IMMEDIATE
1282
+ 
1283
+  (2.8ms) ALTER TABLE bit_core_content_modules
1284
+ ADD CONSTRAINT fk_content_modules_tools
1285
+ FOREIGN KEY (bit_core_tool_id)
1286
+ REFERENCES bit_core_tools(id)
1287
+
1288
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1289
+  (0.6ms) COMMIT
1290
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1291
+  (0.4ms) BEGIN
1292
+  (6.4ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1293
+  (1.9ms)  ALTER TABLE bit_core_content_providers
1294
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1295
+ DEFERRABLE INITIALLY IMMEDIATE
1296
+ 
1297
+  (2.6ms) ALTER TABLE bit_core_content_providers
1298
+ ADD CONSTRAINT fk_content_providers_modules
1299
+ FOREIGN KEY (bit_core_content_module_id)
1300
+ REFERENCES bit_core_content_modules(id)
1301
+
1302
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1303
+  (0.6ms) COMMIT
1304
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1305
+  (0.4ms) BEGIN
1306
+  (4.1ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1307
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1308
+  (0.6ms) COMMIT
1309
+ Migrating to CreateBitCoreSlides (20140417174159)
1310
+  (0.4ms) BEGIN
1311
+  (6.2ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1312
+  (1.8ms)  ALTER TABLE bit_core_slides
1313
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1314
+ DEFERRABLE INITIALLY IMMEDIATE
1315
+ 
1316
+  (2.1ms) ALTER TABLE bit_core_slides
1317
+ ADD CONSTRAINT fk_slideshows_slides
1318
+ FOREIGN KEY (bit_core_slideshow_id)
1319
+ REFERENCES bit_core_slideshows(id)
1320
+
1321
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1322
+  (0.6ms) COMMIT
1323
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1324
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1325
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951015" is a system trigger
1326
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1327
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1328
+  (0.3ms) BEGIN
1329
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_slideshows"
1330
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:36:47', '2014-06-20 16:36:47', 504123193)
1331
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_slides"
1332
+ Fixture Insert (1.7ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:36:47', '2014-06-20 16:36:47', 538050605, 504123193)
1333
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:36:47', '2014-06-20 16:36:47', 958091673, 504123193)
1334
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:36:47', '2014-06-20 16:36:47', 236740868, 504123193)
1335
+  (0.5ms) COMMIT
1336
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1337
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951015" is a system trigger
1338
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1339
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1340
+  (0.2ms) BEGIN
1341
+ BitCore::Slide Load (0.8ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1342
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1343
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1344
+  (0.2ms) ROLLBACK
1345
+  (0.1ms) BEGIN
1346
+  (0.3ms) ROLLBACK
1347
+  (0.2ms) BEGIN
1348
+  (0.2ms) ROLLBACK
1349
+  (0.2ms) BEGIN
1350
+  (0.2ms) ROLLBACK
1351
+  (0.2ms) BEGIN
1352
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1353
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1354
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1355
+  (0.2ms) ROLLBACK
1356
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1357
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1358
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1359
+ Migrating to CreateBitCoreTools (20140415210052)
1360
+  (0.2ms) BEGIN
1361
+  (4.8ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1362
+  (2.3ms) ALTER TABLE bit_core_tools
1363
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1364
+ DEFERRABLE INITIALLY IMMEDIATE
1365
+
1366
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1367
+  (0.6ms) COMMIT
1368
+ Migrating to CreateBitCoreContentModules (20140415211458)
1369
+  (0.3ms) BEGIN
1370
+  (3.5ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1371
+  (1.7ms)  ALTER TABLE bit_core_content_modules
1372
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1373
+ DEFERRABLE INITIALLY IMMEDIATE
1374
+ 
1375
+  (2.4ms) ALTER TABLE bit_core_content_modules
1376
+ ADD CONSTRAINT fk_content_modules_tools
1377
+ FOREIGN KEY (bit_core_tool_id)
1378
+ REFERENCES bit_core_tools(id)
1379
+
1380
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1381
+  (0.6ms) COMMIT
1382
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1383
+  (0.4ms) BEGIN
1384
+  (5.4ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1385
+  (1.7ms)  ALTER TABLE bit_core_content_providers
1386
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1387
+ DEFERRABLE INITIALLY IMMEDIATE
1388
+ 
1389
+  (3.0ms) ALTER TABLE bit_core_content_providers
1390
+ ADD CONSTRAINT fk_content_providers_modules
1391
+ FOREIGN KEY (bit_core_content_module_id)
1392
+ REFERENCES bit_core_content_modules(id)
1393
+
1394
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1395
+  (0.7ms) COMMIT
1396
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1397
+  (0.4ms) BEGIN
1398
+  (3.7ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1399
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1400
+  (0.5ms) COMMIT
1401
+ Migrating to CreateBitCoreSlides (20140417174159)
1402
+  (0.3ms) BEGIN
1403
+  (5.2ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1404
+  (1.5ms)  ALTER TABLE bit_core_slides
1405
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1406
+ DEFERRABLE INITIALLY IMMEDIATE
1407
+ 
1408
+  (2.3ms) ALTER TABLE bit_core_slides
1409
+ ADD CONSTRAINT fk_slideshows_slides
1410
+ FOREIGN KEY (bit_core_slideshow_id)
1411
+ REFERENCES bit_core_slideshows(id)
1412
+
1413
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1414
+  (0.7ms) COMMIT
1415
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1416
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1417
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951098" is a system trigger
1418
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1419
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1420
+  (0.3ms) BEGIN
1421
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
1422
+ Fixture Insert (1.0ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:37:21', '2014-06-20 16:37:21', 504123193)
1423
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
1424
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:37:21', '2014-06-20 16:37:21', 538050605, 504123193)
1425
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:37:21', '2014-06-20 16:37:21', 958091673, 504123193)
1426
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:37:21', '2014-06-20 16:37:21', 236740868, 504123193)
1427
+  (0.5ms) COMMIT
1428
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1429
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951098" is a system trigger
1430
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1431
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1432
+  (0.2ms) BEGIN
1433
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1434
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1435
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1436
+  (0.2ms) ROLLBACK
1437
+  (0.2ms) BEGIN
1438
+  (0.2ms) ROLLBACK
1439
+  (0.2ms) BEGIN
1440
+  (0.2ms) ROLLBACK
1441
+  (0.2ms) BEGIN
1442
+  (0.2ms) ROLLBACK
1443
+  (0.1ms) BEGIN
1444
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1445
+  (0.5ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1446
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1447
+  (0.2ms) ROLLBACK
1448
+  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1449
+  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1450
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1451
+ Migrating to CreateBitCoreTools (20140415210052)
1452
+  (0.2ms) BEGIN
1453
+  (5.0ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1454
+  (2.2ms) ALTER TABLE bit_core_tools
1455
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1456
+ DEFERRABLE INITIALLY IMMEDIATE
1457
+
1458
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1459
+  (0.6ms) COMMIT
1460
+ Migrating to CreateBitCoreContentModules (20140415211458)
1461
+  (0.3ms) BEGIN
1462
+  (3.8ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1463
+  (1.7ms)  ALTER TABLE bit_core_content_modules
1464
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1465
+ DEFERRABLE INITIALLY IMMEDIATE
1466
+ 
1467
+  (2.7ms) ALTER TABLE bit_core_content_modules
1468
+ ADD CONSTRAINT fk_content_modules_tools
1469
+ FOREIGN KEY (bit_core_tool_id)
1470
+ REFERENCES bit_core_tools(id)
1471
+
1472
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1473
+  (0.6ms) COMMIT
1474
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1475
+  (0.4ms) BEGIN
1476
+  (5.9ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1477
+  (1.7ms)  ALTER TABLE bit_core_content_providers
1478
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1479
+ DEFERRABLE INITIALLY IMMEDIATE
1480
+ 
1481
+  (2.4ms) ALTER TABLE bit_core_content_providers
1482
+ ADD CONSTRAINT fk_content_providers_modules
1483
+ FOREIGN KEY (bit_core_content_module_id)
1484
+ REFERENCES bit_core_content_modules(id)
1485
+
1486
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1487
+  (0.6ms) COMMIT
1488
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1489
+  (0.4ms) BEGIN
1490
+  (4.1ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1491
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1492
+  (0.5ms) COMMIT
1493
+ Migrating to CreateBitCoreSlides (20140417174159)
1494
+  (0.3ms) BEGIN
1495
+  (5.6ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1496
+  (2.6ms)  ALTER TABLE bit_core_slides
1497
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1498
+ DEFERRABLE INITIALLY IMMEDIATE
1499
+ 
1500
+  (2.5ms) ALTER TABLE bit_core_slides
1501
+ ADD CONSTRAINT fk_slideshows_slides
1502
+ FOREIGN KEY (bit_core_slideshow_id)
1503
+ REFERENCES bit_core_slideshows(id)
1504
+
1505
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1506
+  (0.8ms) COMMIT
1507
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1508
+  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1509
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951181" is a system trigger
1510
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1511
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1512
+  (0.2ms) BEGIN
1513
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
1514
+ Fixture Insert (0.9ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:45:59', '2014-06-20 16:45:59', 504123193)
1515
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
1516
+ Fixture Insert (1.3ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:45:59', '2014-06-20 16:45:59', 538050605, 504123193)
1517
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:45:59', '2014-06-20 16:45:59', 958091673, 504123193)
1518
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:45:59', '2014-06-20 16:45:59', 236740868, 504123193)
1519
+  (0.4ms) COMMIT
1520
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1521
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951181" is a system trigger
1522
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1523
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1524
+  (0.2ms) BEGIN
1525
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1526
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1527
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1528
+  (0.2ms) ROLLBACK
1529
+  (0.2ms) BEGIN
1530
+  (0.3ms) ROLLBACK
1531
+  (0.1ms) BEGIN
1532
+  (0.2ms) ROLLBACK
1533
+  (0.1ms) BEGIN
1534
+  (0.2ms) ROLLBACK
1535
+  (0.2ms) BEGIN
1536
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1537
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1538
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1539
+  (0.3ms) ROLLBACK
1540
+  (0.3ms) BEGIN
1541
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1542
+  (0.3ms) ROLLBACK
1543
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1544
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1545
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1546
+ Migrating to CreateBitCoreTools (20140415210052)
1547
+  (0.2ms) BEGIN
1548
+  (4.8ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1549
+  (2.2ms) ALTER TABLE bit_core_tools
1550
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1551
+ DEFERRABLE INITIALLY IMMEDIATE
1552
+
1553
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1554
+  (0.7ms) COMMIT
1555
+ Migrating to CreateBitCoreContentModules (20140415211458)
1556
+  (0.3ms) BEGIN
1557
+  (3.9ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1558
+  (1.7ms)  ALTER TABLE bit_core_content_modules
1559
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1560
+ DEFERRABLE INITIALLY IMMEDIATE
1561
+ 
1562
+  (2.4ms) ALTER TABLE bit_core_content_modules
1563
+ ADD CONSTRAINT fk_content_modules_tools
1564
+ FOREIGN KEY (bit_core_tool_id)
1565
+ REFERENCES bit_core_tools(id)
1566
+
1567
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1568
+  (0.6ms) COMMIT
1569
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1570
+  (0.4ms) BEGIN
1571
+  (5.6ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1572
+  (1.9ms)  ALTER TABLE bit_core_content_providers
1573
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1574
+ DEFERRABLE INITIALLY IMMEDIATE
1575
+ 
1576
+  (2.1ms) ALTER TABLE bit_core_content_providers
1577
+ ADD CONSTRAINT fk_content_providers_modules
1578
+ FOREIGN KEY (bit_core_content_module_id)
1579
+ REFERENCES bit_core_content_modules(id)
1580
+
1581
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1582
+  (0.6ms) COMMIT
1583
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1584
+  (0.5ms) BEGIN
1585
+  (3.8ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1586
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1587
+  (0.5ms) COMMIT
1588
+ Migrating to CreateBitCoreSlides (20140417174159)
1589
+  (0.3ms) BEGIN
1590
+  (7.4ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1591
+  (1.9ms)  ALTER TABLE bit_core_slides
1592
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1593
+ DEFERRABLE INITIALLY IMMEDIATE
1594
+ 
1595
+  (2.4ms) ALTER TABLE bit_core_slides
1596
+ ADD CONSTRAINT fk_slideshows_slides
1597
+ FOREIGN KEY (bit_core_slideshow_id)
1598
+ REFERENCES bit_core_slideshows(id)
1599
+
1600
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1601
+  (0.7ms) COMMIT
1602
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1603
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1604
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951264" is a system trigger
1605
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1606
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1607
+  (0.2ms) BEGIN
1608
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
1609
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:46:24', '2014-06-20 16:46:24', 504123193)
1610
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slides"
1611
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:46:24', '2014-06-20 16:46:24', 538050605, 504123193)
1612
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:46:24', '2014-06-20 16:46:24', 958091673, 504123193)
1613
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:46:24', '2014-06-20 16:46:24', 236740868, 504123193)
1614
+  (0.5ms) COMMIT
1615
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1616
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951264" is a system trigger
1617
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1618
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1619
+  (0.1ms) BEGIN
1620
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1621
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1622
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1623
+  (0.2ms) ROLLBACK
1624
+  (0.2ms) BEGIN
1625
+  (0.3ms) ROLLBACK
1626
+  (0.2ms) BEGIN
1627
+  (0.3ms) ROLLBACK
1628
+  (0.2ms) BEGIN
1629
+  (0.2ms) ROLLBACK
1630
+  (0.1ms) BEGIN
1631
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1632
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1633
+ BitCore::Slide Exists (0.8ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1634
+  (0.3ms) ROLLBACK
1635
+  (0.2ms) BEGIN
1636
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1637
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1638
+  (0.2ms) SAVEPOINT active_record_1
1639
+ SQL (0.4ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
1640
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1641
+  (0.3ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1642
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1643
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
1644
+  (0.3ms) ROLLBACK
1645
+  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1646
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1647
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1648
+ Migrating to CreateBitCoreTools (20140415210052)
1649
+  (0.3ms) BEGIN
1650
+  (4.8ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1651
+  (2.3ms) ALTER TABLE bit_core_tools
1652
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1653
+ DEFERRABLE INITIALLY IMMEDIATE
1654
+
1655
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1656
+  (0.6ms) COMMIT
1657
+ Migrating to CreateBitCoreContentModules (20140415211458)
1658
+  (0.3ms) BEGIN
1659
+  (3.7ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1660
+  (1.7ms)  ALTER TABLE bit_core_content_modules
1661
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1662
+ DEFERRABLE INITIALLY IMMEDIATE
1663
+ 
1664
+  (2.6ms) ALTER TABLE bit_core_content_modules
1665
+ ADD CONSTRAINT fk_content_modules_tools
1666
+ FOREIGN KEY (bit_core_tool_id)
1667
+ REFERENCES bit_core_tools(id)
1668
+
1669
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1670
+  (0.6ms) COMMIT
1671
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1672
+  (0.4ms) BEGIN
1673
+  (7.2ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1674
+  (1.6ms)  ALTER TABLE bit_core_content_providers
1675
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1676
+ DEFERRABLE INITIALLY IMMEDIATE
1677
+ 
1678
+  (2.3ms) ALTER TABLE bit_core_content_providers
1679
+ ADD CONSTRAINT fk_content_providers_modules
1680
+ FOREIGN KEY (bit_core_content_module_id)
1681
+ REFERENCES bit_core_content_modules(id)
1682
+
1683
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1684
+  (0.6ms) COMMIT
1685
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1686
+  (0.5ms) BEGIN
1687
+  (3.9ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1688
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1689
+  (0.6ms) COMMIT
1690
+ Migrating to CreateBitCoreSlides (20140417174159)
1691
+  (0.7ms) BEGIN
1692
+  (6.8ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1693
+  (2.0ms)  ALTER TABLE bit_core_slides
1694
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1695
+ DEFERRABLE INITIALLY IMMEDIATE
1696
+ 
1697
+  (2.9ms) ALTER TABLE bit_core_slides
1698
+ ADD CONSTRAINT fk_slideshows_slides
1699
+ FOREIGN KEY (bit_core_slideshow_id)
1700
+ REFERENCES bit_core_slideshows(id)
1701
+
1702
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1703
+  (0.5ms) COMMIT
1704
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1705
+  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1706
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951347" is a system trigger
1707
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1708
+  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1709
+  (0.2ms) BEGIN
1710
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
1711
+ Fixture Insert (1.1ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:47:52', '2014-06-20 16:47:52', 504123193)
1712
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slides"
1713
+ Fixture Insert (1.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:47:52', '2014-06-20 16:47:52', 538050605, 504123193)
1714
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:47:52', '2014-06-20 16:47:52', 958091673, 504123193)
1715
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:47:52', '2014-06-20 16:47:52', 236740868, 504123193)
1716
+  (0.5ms) COMMIT
1717
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1718
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951347" is a system trigger
1719
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1720
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1721
+  (0.2ms) BEGIN
1722
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1723
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1724
+  (0.2ms) SAVEPOINT active_record_1
1725
+ SQL (0.5ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
1726
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1727
+  (0.5ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1728
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1729
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
1730
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1731
+  (0.4ms) ROLLBACK
1732
+  (0.2ms) BEGIN
1733
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1734
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1735
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1736
+  (0.2ms) ROLLBACK
1737
+  (0.2ms) BEGIN
1738
+  (0.2ms) ROLLBACK
1739
+  (0.2ms) BEGIN
1740
+  (0.2ms) ROLLBACK
1741
+  (0.2ms) BEGIN
1742
+  (0.2ms) ROLLBACK
1743
+  (0.3ms) BEGIN
1744
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1745
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1746
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1747
+  (0.2ms) ROLLBACK
1748
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1749
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1750
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1751
+ Migrating to CreateBitCoreTools (20140415210052)
1752
+  (0.2ms) BEGIN
1753
+  (5.0ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1754
+  (2.2ms) ALTER TABLE bit_core_tools
1755
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1756
+ DEFERRABLE INITIALLY IMMEDIATE
1757
+
1758
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1759
+  (0.6ms) COMMIT
1760
+ Migrating to CreateBitCoreContentModules (20140415211458)
1761
+  (0.3ms) BEGIN
1762
+  (3.5ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1763
+  (1.8ms)  ALTER TABLE bit_core_content_modules
1764
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1765
+ DEFERRABLE INITIALLY IMMEDIATE
1766
+ 
1767
+  (3.1ms) ALTER TABLE bit_core_content_modules
1768
+ ADD CONSTRAINT fk_content_modules_tools
1769
+ FOREIGN KEY (bit_core_tool_id)
1770
+ REFERENCES bit_core_tools(id)
1771
+
1772
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1773
+  (0.6ms) COMMIT
1774
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1775
+  (0.4ms) BEGIN
1776
+  (5.4ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1777
+  (1.6ms)  ALTER TABLE bit_core_content_providers
1778
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1779
+ DEFERRABLE INITIALLY IMMEDIATE
1780
+ 
1781
+  (2.9ms) ALTER TABLE bit_core_content_providers
1782
+ ADD CONSTRAINT fk_content_providers_modules
1783
+ FOREIGN KEY (bit_core_content_module_id)
1784
+ REFERENCES bit_core_content_modules(id)
1785
+
1786
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1787
+  (0.7ms) COMMIT
1788
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1789
+  (0.5ms) BEGIN
1790
+  (3.9ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1791
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1792
+  (0.4ms) COMMIT
1793
+ Migrating to CreateBitCoreSlides (20140417174159)
1794
+  (0.3ms) BEGIN
1795
+  (5.4ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1796
+  (1.6ms)  ALTER TABLE bit_core_slides
1797
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1798
+ DEFERRABLE INITIALLY IMMEDIATE
1799
+ 
1800
+  (2.6ms) ALTER TABLE bit_core_slides
1801
+ ADD CONSTRAINT fk_slideshows_slides
1802
+ FOREIGN KEY (bit_core_slideshow_id)
1803
+ REFERENCES bit_core_slideshows(id)
1804
+
1805
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1806
+  (0.7ms) COMMIT
1807
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1808
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1809
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951430" is a system trigger
1810
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1811
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1812
+  (0.3ms) BEGIN
1813
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slideshows"
1814
+ Fixture Insert (1.1ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:48:23', '2014-06-20 16:48:23', 504123193)
1815
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slides"
1816
+ Fixture Insert (1.7ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:48:23', '2014-06-20 16:48:23', 538050605, 504123193)
1817
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:48:23', '2014-06-20 16:48:23', 958091673, 504123193)
1818
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:48:23', '2014-06-20 16:48:23', 236740868, 504123193)
1819
+  (0.4ms) COMMIT
1820
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1821
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951430" is a system trigger
1822
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1823
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1824
+  (0.1ms) BEGIN
1825
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1826
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1827
+  (0.2ms) SAVEPOINT active_record_1
1828
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
1829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1830
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1831
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1832
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
1833
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1834
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
1835
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
1836
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1837
+  (0.3ms) ROLLBACK
1838
+  (0.2ms) BEGIN
1839
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1840
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1841
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1842
+  (0.2ms) ROLLBACK
1843
+  (0.2ms) BEGIN
1844
+  (0.2ms) ROLLBACK
1845
+  (0.2ms) BEGIN
1846
+  (0.1ms) ROLLBACK
1847
+  (0.1ms) BEGIN
1848
+  (0.1ms) ROLLBACK
1849
+  (0.1ms) BEGIN
1850
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1851
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1852
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1853
+  (0.2ms) ROLLBACK
1854
+  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1855
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1856
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1857
+ Migrating to CreateBitCoreTools (20140415210052)
1858
+  (0.2ms) BEGIN
1859
+  (5.0ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1860
+  (2.4ms) ALTER TABLE bit_core_tools
1861
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1862
+ DEFERRABLE INITIALLY IMMEDIATE
1863
+
1864
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1865
+  (0.6ms) COMMIT
1866
+ Migrating to CreateBitCoreContentModules (20140415211458)
1867
+  (0.3ms) BEGIN
1868
+  (3.6ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1869
+  (1.8ms)  ALTER TABLE bit_core_content_modules
1870
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1871
+ DEFERRABLE INITIALLY IMMEDIATE
1872
+ 
1873
+  (2.4ms) ALTER TABLE bit_core_content_modules
1874
+ ADD CONSTRAINT fk_content_modules_tools
1875
+ FOREIGN KEY (bit_core_tool_id)
1876
+ REFERENCES bit_core_tools(id)
1877
+
1878
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1879
+  (0.6ms) COMMIT
1880
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1881
+  (0.4ms) BEGIN
1882
+  (5.5ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1883
+  (1.7ms)  ALTER TABLE bit_core_content_providers
1884
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1885
+ DEFERRABLE INITIALLY IMMEDIATE
1886
+ 
1887
+  (2.8ms) ALTER TABLE bit_core_content_providers
1888
+ ADD CONSTRAINT fk_content_providers_modules
1889
+ FOREIGN KEY (bit_core_content_module_id)
1890
+ REFERENCES bit_core_content_modules(id)
1891
+
1892
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
1893
+  (0.6ms) COMMIT
1894
+ Migrating to CreateBitCoreSlideshows (20140417173056)
1895
+  (0.4ms) BEGIN
1896
+  (4.1ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1897
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
1898
+  (0.6ms) COMMIT
1899
+ Migrating to CreateBitCoreSlides (20140417174159)
1900
+  (0.4ms) BEGIN
1901
+  (7.4ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1902
+  (1.9ms)  ALTER TABLE bit_core_slides
1903
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
1904
+ DEFERRABLE INITIALLY IMMEDIATE
1905
+ 
1906
+  (1.9ms) ALTER TABLE bit_core_slides
1907
+ ADD CONSTRAINT fk_slideshows_slides
1908
+ FOREIGN KEY (bit_core_slideshow_id)
1909
+ REFERENCES bit_core_slideshows(id)
1910
+
1911
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
1912
+  (0.6ms) COMMIT
1913
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1914
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1915
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951513" is a system trigger
1916
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1917
+  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1918
+  (0.2ms) BEGIN
1919
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
1920
+ Fixture Insert (0.7ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:49:03', '2014-06-20 16:49:03', 504123193)
1921
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slides"
1922
+ Fixture Insert (1.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:49:03', '2014-06-20 16:49:03', 538050605, 504123193)
1923
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:49:03', '2014-06-20 16:49:03', 958091673, 504123193)
1924
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:49:03', '2014-06-20 16:49:03', 236740868, 504123193)
1925
+  (0.4ms) COMMIT
1926
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1927
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951513" is a system trigger
1928
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1929
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1930
+  (0.2ms) BEGIN
1931
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1932
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1933
+  (0.2ms) SAVEPOINT active_record_1
1934
+ SQL (0.4ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
1935
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1936
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1937
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1938
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
1939
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1940
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
1941
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
1942
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1943
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
1944
+  (0.2ms) ROLLBACK
1945
+  (0.2ms) BEGIN
1946
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
1947
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
1948
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
1949
+  (0.2ms) ROLLBACK
1950
+  (0.2ms) BEGIN
1951
+  (0.2ms) ROLLBACK
1952
+  (0.2ms) BEGIN
1953
+  (0.2ms) ROLLBACK
1954
+  (0.2ms) BEGIN
1955
+  (0.2ms) ROLLBACK
1956
+  (0.2ms) BEGIN
1957
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
1958
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
1959
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
1960
+  (0.5ms) ROLLBACK
1961
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1962
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1963
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1964
+ Migrating to CreateBitCoreTools (20140415210052)
1965
+  (0.2ms) BEGIN
1966
+  (5.5ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1967
+  (2.6ms) ALTER TABLE bit_core_tools
1968
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
1969
+ DEFERRABLE INITIALLY IMMEDIATE
1970
+
1971
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
1972
+  (0.6ms) COMMIT
1973
+ Migrating to CreateBitCoreContentModules (20140415211458)
1974
+  (0.4ms) BEGIN
1975
+  (6.3ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1976
+  (2.2ms)  ALTER TABLE bit_core_content_modules
1977
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
1978
+ DEFERRABLE INITIALLY IMMEDIATE
1979
+ 
1980
+  (3.6ms) ALTER TABLE bit_core_content_modules
1981
+ ADD CONSTRAINT fk_content_modules_tools
1982
+ FOREIGN KEY (bit_core_tool_id)
1983
+ REFERENCES bit_core_tools(id)
1984
+
1985
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
1986
+  (0.7ms) COMMIT
1987
+ Migrating to CreateBitCoreContentProviders (20140415213346)
1988
+  (0.4ms) BEGIN
1989
+  (5.6ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1990
+  (1.6ms)  ALTER TABLE bit_core_content_providers
1991
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
1992
+ DEFERRABLE INITIALLY IMMEDIATE
1993
+ 
1994
+  (2.0ms) ALTER TABLE bit_core_content_providers
1995
+ ADD CONSTRAINT fk_content_providers_modules
1996
+ FOREIGN KEY (bit_core_content_module_id)
1997
+ REFERENCES bit_core_content_modules(id)
1998
+
1999
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2000
+  (0.7ms) COMMIT
2001
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2002
+  (0.5ms) BEGIN
2003
+  (5.6ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2004
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2005
+  (0.6ms) COMMIT
2006
+ Migrating to CreateBitCoreSlides (20140417174159)
2007
+  (0.4ms) BEGIN
2008
+  (6.8ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2009
+  (1.5ms)  ALTER TABLE bit_core_slides
2010
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2011
+ DEFERRABLE INITIALLY IMMEDIATE
2012
+ 
2013
+  (2.3ms) ALTER TABLE bit_core_slides
2014
+ ADD CONSTRAINT fk_slideshows_slides
2015
+ FOREIGN KEY (bit_core_slideshow_id)
2016
+ REFERENCES bit_core_slideshows(id)
2017
+
2018
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2019
+  (0.6ms) COMMIT
2020
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2021
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2022
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951596" is a system trigger
2023
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2024
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2025
+  (0.3ms) BEGIN
2026
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slideshows"
2027
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:49:59', '2014-06-20 16:49:59', 504123193)
2028
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
2029
+ Fixture Insert (1.3ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:49:59', '2014-06-20 16:49:59', 538050605, 504123193)
2030
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:49:59', '2014-06-20 16:49:59', 958091673, 504123193)
2031
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:49:59', '2014-06-20 16:49:59', 236740868, 504123193)
2032
+  (0.4ms) COMMIT
2033
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2034
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951596" is a system trigger
2035
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2036
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2037
+  (0.1ms) BEGIN
2038
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2039
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2040
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2041
+  (0.2ms) ROLLBACK
2042
+  (0.2ms) BEGIN
2043
+  (0.3ms) ROLLBACK
2044
+  (0.2ms) BEGIN
2045
+  (0.2ms) ROLLBACK
2046
+  (0.2ms) BEGIN
2047
+  (0.2ms) ROLLBACK
2048
+  (0.1ms) BEGIN
2049
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2050
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2051
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2052
+  (0.2ms) ROLLBACK
2053
+  (0.2ms) BEGIN
2054
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2055
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2056
+  (0.2ms) SAVEPOINT active_record_1
2057
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2058
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2059
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2060
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2061
+  (0.2ms) SAVEPOINT active_record_1
2062
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2063
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:49:59.249275"]]
2064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2065
+  (0.3ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2066
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2067
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2068
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2069
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2070
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2071
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2072
+  (0.2ms) ROLLBACK
2073
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2074
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2075
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2076
+ Migrating to CreateBitCoreTools (20140415210052)
2077
+  (0.3ms) BEGIN
2078
+  (5.2ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2079
+  (2.3ms) ALTER TABLE bit_core_tools
2080
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2081
+ DEFERRABLE INITIALLY IMMEDIATE
2082
+
2083
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2084
+  (0.5ms) COMMIT
2085
+ Migrating to CreateBitCoreContentModules (20140415211458)
2086
+  (0.3ms) BEGIN
2087
+  (3.7ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2088
+  (1.6ms)  ALTER TABLE bit_core_content_modules
2089
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2090
+ DEFERRABLE INITIALLY IMMEDIATE
2091
+ 
2092
+  (2.5ms) ALTER TABLE bit_core_content_modules
2093
+ ADD CONSTRAINT fk_content_modules_tools
2094
+ FOREIGN KEY (bit_core_tool_id)
2095
+ REFERENCES bit_core_tools(id)
2096
+
2097
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2098
+  (0.6ms) COMMIT
2099
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2100
+  (0.4ms) BEGIN
2101
+  (6.7ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2102
+  (1.9ms)  ALTER TABLE bit_core_content_providers
2103
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2104
+ DEFERRABLE INITIALLY IMMEDIATE
2105
+ 
2106
+  (2.3ms) ALTER TABLE bit_core_content_providers
2107
+ ADD CONSTRAINT fk_content_providers_modules
2108
+ FOREIGN KEY (bit_core_content_module_id)
2109
+ REFERENCES bit_core_content_modules(id)
2110
+
2111
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2112
+  (0.7ms) COMMIT
2113
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2114
+  (0.5ms) BEGIN
2115
+  (6.4ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2116
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2117
+  (1.0ms) COMMIT
2118
+ Migrating to CreateBitCoreSlides (20140417174159)
2119
+  (0.5ms) BEGIN
2120
+  (6.6ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2121
+  (1.5ms)  ALTER TABLE bit_core_slides
2122
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2123
+ DEFERRABLE INITIALLY IMMEDIATE
2124
+ 
2125
+  (2.1ms) ALTER TABLE bit_core_slides
2126
+ ADD CONSTRAINT fk_slideshows_slides
2127
+ FOREIGN KEY (bit_core_slideshow_id)
2128
+ REFERENCES bit_core_slideshows(id)
2129
+
2130
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2131
+  (0.6ms) COMMIT
2132
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2133
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2134
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951679" is a system trigger
2135
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2136
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2137
+  (0.2ms) BEGIN
2138
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
2139
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:52:09', '2014-06-20 16:52:09', 504123193)
2140
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
2141
+ Fixture Insert (1.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:52:09', '2014-06-20 16:52:09', 538050605, 504123193)
2142
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:52:09', '2014-06-20 16:52:09', 958091673, 504123193)
2143
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:52:09', '2014-06-20 16:52:09', 236740868, 504123193)
2144
+  (0.5ms) COMMIT
2145
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2146
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951679" is a system trigger
2147
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2148
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2149
+  (0.2ms) BEGIN
2150
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2151
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2152
+  (0.2ms) SAVEPOINT active_record_1
2153
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2155
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2156
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2157
+  (0.2ms) SAVEPOINT active_record_1
2158
+ BitCore::Slide Exists (0.8ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2159
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:52:09.920982"]]
2160
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2161
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2162
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2163
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2164
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2165
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2166
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2167
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2168
+  (0.2ms) ROLLBACK
2169
+  (0.2ms) BEGIN
2170
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2171
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2172
+ BitCore::Slide Exists (0.4ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2173
+  (0.1ms) ROLLBACK
2174
+  (0.1ms) BEGIN
2175
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2176
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2177
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2178
+  (0.3ms) ROLLBACK
2179
+  (0.2ms) BEGIN
2180
+  (0.2ms) ROLLBACK
2181
+  (0.1ms) BEGIN
2182
+  (0.1ms) ROLLBACK
2183
+  (0.1ms) BEGIN
2184
+  (0.2ms) ROLLBACK
2185
+  (0.1ms) BEGIN
2186
+ BitCore::Slide Load (0.2ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2187
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2188
+ BitCore::Slide Load (0.2ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2189
+  (0.2ms) ROLLBACK
2190
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2191
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2192
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2193
+ Migrating to CreateBitCoreTools (20140415210052)
2194
+  (0.2ms) BEGIN
2195
+  (4.7ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2196
+  (2.2ms) ALTER TABLE bit_core_tools
2197
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2198
+ DEFERRABLE INITIALLY IMMEDIATE
2199
+
2200
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2201
+  (0.8ms) COMMIT
2202
+ Migrating to CreateBitCoreContentModules (20140415211458)
2203
+  (0.4ms) BEGIN
2204
+  (3.9ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2205
+  (1.7ms)  ALTER TABLE bit_core_content_modules
2206
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2207
+ DEFERRABLE INITIALLY IMMEDIATE
2208
+ 
2209
+  (2.4ms) ALTER TABLE bit_core_content_modules
2210
+ ADD CONSTRAINT fk_content_modules_tools
2211
+ FOREIGN KEY (bit_core_tool_id)
2212
+ REFERENCES bit_core_tools(id)
2213
+
2214
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2215
+  (0.6ms) COMMIT
2216
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2217
+  (0.4ms) BEGIN
2218
+  (5.9ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2219
+  (1.6ms)  ALTER TABLE bit_core_content_providers
2220
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2221
+ DEFERRABLE INITIALLY IMMEDIATE
2222
+ 
2223
+  (2.3ms) ALTER TABLE bit_core_content_providers
2224
+ ADD CONSTRAINT fk_content_providers_modules
2225
+ FOREIGN KEY (bit_core_content_module_id)
2226
+ REFERENCES bit_core_content_modules(id)
2227
+
2228
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2229
+  (0.6ms) COMMIT
2230
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2231
+  (0.5ms) BEGIN
2232
+  (6.0ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2233
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2234
+  (0.7ms) COMMIT
2235
+ Migrating to CreateBitCoreSlides (20140417174159)
2236
+  (0.5ms) BEGIN
2237
+  (6.6ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2238
+  (1.5ms)  ALTER TABLE bit_core_slides
2239
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2240
+ DEFERRABLE INITIALLY IMMEDIATE
2241
+ 
2242
+  (2.4ms) ALTER TABLE bit_core_slides
2243
+ ADD CONSTRAINT fk_slideshows_slides
2244
+ FOREIGN KEY (bit_core_slideshow_id)
2245
+ REFERENCES bit_core_slideshows(id)
2246
+
2247
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2248
+  (0.6ms) COMMIT
2249
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2250
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2251
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951762" is a system trigger
2252
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2253
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2254
+  (0.2ms) BEGIN
2255
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
2256
+ Fixture Insert (1.0ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:53:29', '2014-06-20 16:53:29', 504123193)
2257
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slides"
2258
+ Fixture Insert (1.3ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:53:29', '2014-06-20 16:53:29', 538050605, 504123193)
2259
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:53:29', '2014-06-20 16:53:29', 958091673, 504123193)
2260
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:53:29', '2014-06-20 16:53:29', 236740868, 504123193)
2261
+  (0.6ms) COMMIT
2262
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2263
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951762" is a system trigger
2264
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2265
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2266
+  (0.1ms) BEGIN
2267
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2268
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2269
+  (0.2ms) SAVEPOINT active_record_1
2270
+ SQL (0.4ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2272
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2273
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2274
+  (0.2ms) SAVEPOINT active_record_1
2275
+ BitCore::Slide Exists (0.8ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2276
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:53:29.270702"]]
2277
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2278
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2279
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2280
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2281
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2282
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2283
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2284
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2285
+  (0.3ms) ROLLBACK
2286
+  (0.2ms) BEGIN
2287
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2288
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2289
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2290
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2291
+  (0.2ms) SAVEPOINT active_record_1
2292
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
2293
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2294
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 1 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2295
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2296
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 538050605 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2297
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
2298
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 3 AND "bit_core_slides"."id" != 958091673 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2299
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2300
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2301
+  (0.4ms) ROLLBACK
2302
+  (0.2ms) BEGIN
2303
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2304
+  (0.5ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2305
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2306
+  (0.2ms) ROLLBACK
2307
+  (0.2ms) BEGIN
2308
+  (0.2ms) ROLLBACK
2309
+  (0.2ms) BEGIN
2310
+  (0.2ms) ROLLBACK
2311
+  (0.2ms) BEGIN
2312
+  (0.2ms) ROLLBACK
2313
+  (0.2ms) BEGIN
2314
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2315
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2316
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2317
+  (0.2ms) ROLLBACK
2318
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2319
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2320
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2321
+ Migrating to CreateBitCoreTools (20140415210052)
2322
+  (0.2ms) BEGIN
2323
+  (4.9ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2324
+  (2.2ms) ALTER TABLE bit_core_tools
2325
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2326
+ DEFERRABLE INITIALLY IMMEDIATE
2327
+
2328
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2329
+  (0.6ms) COMMIT
2330
+ Migrating to CreateBitCoreContentModules (20140415211458)
2331
+  (0.3ms) BEGIN
2332
+  (3.7ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2333
+  (1.7ms)  ALTER TABLE bit_core_content_modules
2334
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2335
+ DEFERRABLE INITIALLY IMMEDIATE
2336
+ 
2337
+  (3.1ms) ALTER TABLE bit_core_content_modules
2338
+ ADD CONSTRAINT fk_content_modules_tools
2339
+ FOREIGN KEY (bit_core_tool_id)
2340
+ REFERENCES bit_core_tools(id)
2341
+
2342
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2343
+  (0.6ms) COMMIT
2344
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2345
+  (0.4ms) BEGIN
2346
+  (7.2ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2347
+  (1.6ms)  ALTER TABLE bit_core_content_providers
2348
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2349
+ DEFERRABLE INITIALLY IMMEDIATE
2350
+ 
2351
+  (3.0ms) ALTER TABLE bit_core_content_providers
2352
+ ADD CONSTRAINT fk_content_providers_modules
2353
+ FOREIGN KEY (bit_core_content_module_id)
2354
+ REFERENCES bit_core_content_modules(id)
2355
+
2356
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2357
+  (0.6ms) COMMIT
2358
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2359
+  (0.4ms) BEGIN
2360
+  (5.5ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2361
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2362
+  (0.7ms) COMMIT
2363
+ Migrating to CreateBitCoreSlides (20140417174159)
2364
+  (0.5ms) BEGIN
2365
+  (7.2ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2366
+  (1.5ms)  ALTER TABLE bit_core_slides
2367
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2368
+ DEFERRABLE INITIALLY IMMEDIATE
2369
+ 
2370
+  (2.0ms) ALTER TABLE bit_core_slides
2371
+ ADD CONSTRAINT fk_slideshows_slides
2372
+ FOREIGN KEY (bit_core_slideshow_id)
2373
+ REFERENCES bit_core_slideshows(id)
2374
+
2375
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2376
+  (0.7ms) COMMIT
2377
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2378
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2379
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951845" is a system trigger
2380
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2381
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2382
+  (0.2ms) BEGIN
2383
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
2384
+ Fixture Insert (1.1ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:54:50', '2014-06-20 16:54:50', 504123193)
2385
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
2386
+ Fixture Insert (1.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:54:50', '2014-06-20 16:54:50', 538050605, 504123193)
2387
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:54:50', '2014-06-20 16:54:50', 958091673, 504123193)
2388
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:54:50', '2014-06-20 16:54:50', 236740868, 504123193)
2389
+  (0.5ms) COMMIT
2390
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2391
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951845" is a system trigger
2392
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2393
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2394
+  (0.1ms) BEGIN
2395
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2396
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2397
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2398
+  (0.2ms) ROLLBACK
2399
+  (0.1ms) BEGIN
2400
+  (0.3ms) ROLLBACK
2401
+  (0.2ms) BEGIN
2402
+  (0.2ms) ROLLBACK
2403
+  (0.1ms) BEGIN
2404
+  (0.1ms) ROLLBACK
2405
+  (0.1ms) BEGIN
2406
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2407
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2408
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2409
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2410
+  (0.2ms) SAVEPOINT active_record_1
2411
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
2412
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2413
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 1 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2414
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2415
+ BitCore::Slide Exists (0.4ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 538050605 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2416
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
2417
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 3 AND "bit_core_slides"."id" != 958091673 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2418
+
2419
+ ***** Debugger requested, but was not available (ensure the debugger gem is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
2420
+
2421
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2422
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2423
+  (0.3ms) ROLLBACK
2424
+  (0.2ms) BEGIN
2425
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2426
+  (0.5ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2427
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2428
+  (0.3ms) ROLLBACK
2429
+  (0.3ms) BEGIN
2430
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2431
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2432
+  (0.2ms) SAVEPOINT active_record_1
2433
+ SQL (0.5ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2434
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2435
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2436
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2437
+  (0.2ms) SAVEPOINT active_record_1
2438
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2439
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:54:50.982199"]]
2440
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2441
+  (0.9ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2442
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2443
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2444
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2445
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2446
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2447
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2448
+  (0.3ms) ROLLBACK
2449
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2450
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2451
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2452
+ Migrating to CreateBitCoreTools (20140415210052)
2453
+  (0.2ms) BEGIN
2454
+  (4.7ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2455
+  (2.3ms) ALTER TABLE bit_core_tools
2456
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2457
+ DEFERRABLE INITIALLY IMMEDIATE
2458
+
2459
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2460
+  (0.8ms) COMMIT
2461
+ Migrating to CreateBitCoreContentModules (20140415211458)
2462
+  (0.3ms) BEGIN
2463
+  (3.4ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2464
+  (1.7ms)  ALTER TABLE bit_core_content_modules
2465
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2466
+ DEFERRABLE INITIALLY IMMEDIATE
2467
+ 
2468
+  (2.4ms) ALTER TABLE bit_core_content_modules
2469
+ ADD CONSTRAINT fk_content_modules_tools
2470
+ FOREIGN KEY (bit_core_tool_id)
2471
+ REFERENCES bit_core_tools(id)
2472
+
2473
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2474
+  (0.6ms) COMMIT
2475
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2476
+  (0.5ms) BEGIN
2477
+  (5.6ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2478
+  (1.6ms)  ALTER TABLE bit_core_content_providers
2479
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2480
+ DEFERRABLE INITIALLY IMMEDIATE
2481
+ 
2482
+  (2.1ms) ALTER TABLE bit_core_content_providers
2483
+ ADD CONSTRAINT fk_content_providers_modules
2484
+ FOREIGN KEY (bit_core_content_module_id)
2485
+ REFERENCES bit_core_content_modules(id)
2486
+
2487
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2488
+  (0.6ms) COMMIT
2489
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2490
+  (0.5ms) BEGIN
2491
+  (3.8ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2492
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2493
+  (0.5ms) COMMIT
2494
+ Migrating to CreateBitCoreSlides (20140417174159)
2495
+  (0.4ms) BEGIN
2496
+  (6.6ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2497
+  (1.8ms)  ALTER TABLE bit_core_slides
2498
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2499
+ DEFERRABLE INITIALLY IMMEDIATE
2500
+ 
2501
+  (2.4ms) ALTER TABLE bit_core_slides
2502
+ ADD CONSTRAINT fk_slideshows_slides
2503
+ FOREIGN KEY (bit_core_slideshow_id)
2504
+ REFERENCES bit_core_slideshows(id)
2505
+
2506
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2507
+  (0.6ms) COMMIT
2508
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2509
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2510
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951928" is a system trigger
2511
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2512
+  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2513
+  (0.3ms) BEGIN
2514
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
2515
+ Fixture Insert (0.9ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:55:11', '2014-06-20 16:55:11', 504123193)
2516
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
2517
+ Fixture Insert (1.3ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:55:11', '2014-06-20 16:55:11', 538050605, 504123193)
2518
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:55:11', '2014-06-20 16:55:11', 958091673, 504123193)
2519
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:55:11', '2014-06-20 16:55:11', 236740868, 504123193)
2520
+  (0.4ms) COMMIT
2521
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2522
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_951928" is a system trigger
2523
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2524
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2525
+  (0.1ms) BEGIN
2526
+ BitCore::Slideshow Load (0.7ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2527
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2528
+  (0.2ms) SAVEPOINT active_record_1
2529
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2531
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2532
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2533
+  (0.2ms) SAVEPOINT active_record_1
2534
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2535
+ SQL (0.4ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:55:11.164996"]]
2536
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2537
+  (0.3ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2538
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2539
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2540
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2541
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2542
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2543
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2544
+  (0.3ms) ROLLBACK
2545
+  (0.2ms) BEGIN
2546
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2547
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2548
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2549
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2550
+  (0.2ms) SAVEPOINT active_record_1
2551
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
2552
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2553
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 1 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2554
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2555
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 538050605 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2556
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
2557
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 3 AND "bit_core_slides"."id" != 958091673 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2558
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
2559
+  (0.2ms) ROLLBACK
2560
+  (0.1ms) BEGIN
2561
+ BitCore::Slideshow Load (0.3ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2562
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2563
+ BitCore::Slide Exists (0.4ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2564
+  (0.2ms) ROLLBACK
2565
+  (0.2ms) BEGIN
2566
+  (0.3ms) ROLLBACK
2567
+  (0.1ms) BEGIN
2568
+  (0.2ms) ROLLBACK
2569
+  (0.2ms) BEGIN
2570
+  (0.2ms) ROLLBACK
2571
+  (0.2ms) BEGIN
2572
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2573
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2574
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2575
+  (0.2ms) ROLLBACK
2576
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2577
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2578
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2579
+ Migrating to CreateBitCoreTools (20140415210052)
2580
+  (0.2ms) BEGIN
2581
+  (4.8ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2582
+  (2.3ms) ALTER TABLE bit_core_tools
2583
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2584
+ DEFERRABLE INITIALLY IMMEDIATE
2585
+
2586
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2587
+  (0.6ms) COMMIT
2588
+ Migrating to CreateBitCoreContentModules (20140415211458)
2589
+  (0.3ms) BEGIN
2590
+  (3.6ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2591
+  (1.8ms)  ALTER TABLE bit_core_content_modules
2592
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2593
+ DEFERRABLE INITIALLY IMMEDIATE
2594
+ 
2595
+  (2.4ms) ALTER TABLE bit_core_content_modules
2596
+ ADD CONSTRAINT fk_content_modules_tools
2597
+ FOREIGN KEY (bit_core_tool_id)
2598
+ REFERENCES bit_core_tools(id)
2599
+
2600
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2601
+  (0.6ms) COMMIT
2602
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2603
+  (0.4ms) BEGIN
2604
+  (5.8ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2605
+  (1.9ms)  ALTER TABLE bit_core_content_providers
2606
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2607
+ DEFERRABLE INITIALLY IMMEDIATE
2608
+ 
2609
+  (2.6ms) ALTER TABLE bit_core_content_providers
2610
+ ADD CONSTRAINT fk_content_providers_modules
2611
+ FOREIGN KEY (bit_core_content_module_id)
2612
+ REFERENCES bit_core_content_modules(id)
2613
+
2614
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2615
+  (0.6ms) COMMIT
2616
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2617
+  (0.6ms) BEGIN
2618
+  (5.5ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2619
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2620
+  (0.6ms) COMMIT
2621
+ Migrating to CreateBitCoreSlides (20140417174159)
2622
+  (0.5ms) BEGIN
2623
+  (7.1ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2624
+  (1.5ms)  ALTER TABLE bit_core_slides
2625
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2626
+ DEFERRABLE INITIALLY IMMEDIATE
2627
+ 
2628
+  (1.9ms) ALTER TABLE bit_core_slides
2629
+ ADD CONSTRAINT fk_slideshows_slides
2630
+ FOREIGN KEY (bit_core_slideshow_id)
2631
+ REFERENCES bit_core_slideshows(id)
2632
+
2633
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2634
+  (0.6ms) COMMIT
2635
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2636
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2637
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952011" is a system trigger
2638
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2639
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2640
+  (0.2ms) BEGIN
2641
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slideshows"
2642
+ Fixture Insert (1.0ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:56:28', '2014-06-20 16:56:28', 504123193)
2643
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
2644
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:56:28', '2014-06-20 16:56:28', 538050605, 504123193)
2645
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:56:28', '2014-06-20 16:56:28', 958091673, 504123193)
2646
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:56:28', '2014-06-20 16:56:28', 236740868, 504123193)
2647
+  (0.5ms) COMMIT
2648
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2649
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952011" is a system trigger
2650
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2651
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2652
+  (0.2ms) BEGIN
2653
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2654
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2655
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2656
+  (0.2ms) ROLLBACK
2657
+  (0.1ms) BEGIN
2658
+  (0.3ms) ROLLBACK
2659
+  (0.2ms) BEGIN
2660
+  (0.2ms) ROLLBACK
2661
+  (0.1ms) BEGIN
2662
+  (0.1ms) ROLLBACK
2663
+  (0.1ms) BEGIN
2664
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2665
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2666
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2667
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2668
+  (0.3ms) SAVEPOINT active_record_1
2669
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
2670
+  (0.4ms) SELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position [["bit_core_slideshow_id", 504123193]]
2671
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2672
+ BitCore::Slide Exists (0.9ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 1 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2673
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2674
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 538050605 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2675
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
2676
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 3 AND "bit_core_slides"."id" != 958091673 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2677
+  (0.4ms) SELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position [["bit_core_slideshow_id", 504123193]]
2678
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2679
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2680
+  (0.2ms) ROLLBACK
2681
+  (0.2ms) BEGIN
2682
+ BitCore::Slideshow Load (0.3ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2683
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2684
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2685
+  (0.2ms) ROLLBACK
2686
+  (0.2ms) BEGIN
2687
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2688
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2689
+  (0.5ms) SAVEPOINT active_record_1
2690
+ SQL (0.5ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2691
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2692
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2693
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2694
+  (0.3ms) SAVEPOINT active_record_1
2695
+ BitCore::Slide Exists (1.1ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2696
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:56:28.427493"]]
2697
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2698
+  (0.6ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2699
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2700
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2701
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2702
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2703
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2704
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2705
+  (0.3ms) ROLLBACK
2706
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2707
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2708
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2709
+ Migrating to CreateBitCoreTools (20140415210052)
2710
+  (0.2ms) BEGIN
2711
+  (4.8ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2712
+  (2.2ms) ALTER TABLE bit_core_tools
2713
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2714
+ DEFERRABLE INITIALLY IMMEDIATE
2715
+
2716
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2717
+  (0.6ms) COMMIT
2718
+ Migrating to CreateBitCoreContentModules (20140415211458)
2719
+  (0.4ms) BEGIN
2720
+  (3.6ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2721
+  (1.7ms)  ALTER TABLE bit_core_content_modules
2722
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2723
+ DEFERRABLE INITIALLY IMMEDIATE
2724
+ 
2725
+  (2.4ms) ALTER TABLE bit_core_content_modules
2726
+ ADD CONSTRAINT fk_content_modules_tools
2727
+ FOREIGN KEY (bit_core_tool_id)
2728
+ REFERENCES bit_core_tools(id)
2729
+
2730
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2731
+  (0.6ms) COMMIT
2732
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2733
+  (0.4ms) BEGIN
2734
+  (5.9ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2735
+  (1.6ms)  ALTER TABLE bit_core_content_providers
2736
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2737
+ DEFERRABLE INITIALLY IMMEDIATE
2738
+ 
2739
+  (2.2ms) ALTER TABLE bit_core_content_providers
2740
+ ADD CONSTRAINT fk_content_providers_modules
2741
+ FOREIGN KEY (bit_core_content_module_id)
2742
+ REFERENCES bit_core_content_modules(id)
2743
+
2744
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2745
+  (0.6ms) COMMIT
2746
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2747
+  (0.5ms) BEGIN
2748
+  (3.9ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2749
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2750
+  (0.5ms) COMMIT
2751
+ Migrating to CreateBitCoreSlides (20140417174159)
2752
+  (0.3ms) BEGIN
2753
+  (8.3ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2754
+  (2.5ms)  ALTER TABLE bit_core_slides
2755
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2756
+ DEFERRABLE INITIALLY IMMEDIATE
2757
+ 
2758
+  (3.1ms) ALTER TABLE bit_core_slides
2759
+ ADD CONSTRAINT fk_slideshows_slides
2760
+ FOREIGN KEY (bit_core_slideshow_id)
2761
+ REFERENCES bit_core_slideshows(id)
2762
+
2763
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2764
+  (0.6ms) COMMIT
2765
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2766
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2767
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952094" is a system trigger
2768
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2769
+  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2770
+  (0.3ms) BEGIN
2771
+ Fixture Delete (0.4ms) DELETE FROM "bit_core_slideshows"
2772
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:57:08', '2014-06-20 16:57:08', 504123193)
2773
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
2774
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:57:08', '2014-06-20 16:57:08', 538050605, 504123193)
2775
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:57:08', '2014-06-20 16:57:08', 958091673, 504123193)
2776
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:57:08', '2014-06-20 16:57:08', 236740868, 504123193)
2777
+  (0.5ms) COMMIT
2778
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2779
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952094" is a system trigger
2780
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2781
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2782
+  (0.2ms) BEGIN
2783
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2784
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2785
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2786
+  (0.2ms) ROLLBACK
2787
+  (0.1ms) BEGIN
2788
+  (0.4ms) ROLLBACK
2789
+  (0.2ms) BEGIN
2790
+  (0.2ms) ROLLBACK
2791
+  (0.2ms) BEGIN
2792
+  (0.2ms) ROLLBACK
2793
+  (0.1ms) BEGIN
2794
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2795
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2796
+  (0.2ms) SAVEPOINT active_record_1
2797
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2798
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2799
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2800
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2801
+  (0.2ms) SAVEPOINT active_record_1
2802
+ BitCore::Slide Exists (0.8ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2803
+ SQL (0.7ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:57:08.329553"]]
2804
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2805
+  (0.3ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2806
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2807
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2808
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2809
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2810
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2811
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2812
+  (0.2ms) ROLLBACK
2813
+  (0.2ms) BEGIN
2814
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2815
+  (0.3ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2816
+ BitCore::Slide Exists (0.5ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2817
+  (0.2ms) ROLLBACK
2818
+  (0.2ms) BEGIN
2819
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2820
+ BitCore::Slide Load (0.2ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2821
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2822
+ BitCore::Slideshow Load (0.3ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2823
+  (0.2ms) SAVEPOINT active_record_1
2824
+  (0.2ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
2825
+  (0.3ms) SELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position [["bit_core_slideshow_id", 504123193]]
2826
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2827
+ BitCore::Slide Exists (0.4ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 1 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2828
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
2829
+  (0.2ms) ROLLBACK
2830
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2831
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2832
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2833
+ Migrating to CreateBitCoreTools (20140415210052)
2834
+  (0.2ms) BEGIN
2835
+  (4.8ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2836
+  (2.4ms) ALTER TABLE bit_core_tools
2837
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2838
+ DEFERRABLE INITIALLY IMMEDIATE
2839
+
2840
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2841
+  (18.1ms) COMMIT
2842
+ Migrating to CreateBitCoreContentModules (20140415211458)
2843
+  (0.5ms) BEGIN
2844
+  (14.5ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2845
+  (2.2ms)  ALTER TABLE bit_core_content_modules
2846
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2847
+ DEFERRABLE INITIALLY IMMEDIATE
2848
+ 
2849
+  (3.0ms) ALTER TABLE bit_core_content_modules
2850
+ ADD CONSTRAINT fk_content_modules_tools
2851
+ FOREIGN KEY (bit_core_tool_id)
2852
+ REFERENCES bit_core_tools(id)
2853
+
2854
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2855
+  (0.8ms) COMMIT
2856
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2857
+  (0.5ms) BEGIN
2858
+  (5.7ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2859
+  (2.1ms)  ALTER TABLE bit_core_content_providers
2860
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2861
+ DEFERRABLE INITIALLY IMMEDIATE
2862
+ 
2863
+  (2.3ms) ALTER TABLE bit_core_content_providers
2864
+ ADD CONSTRAINT fk_content_providers_modules
2865
+ FOREIGN KEY (bit_core_content_module_id)
2866
+ REFERENCES bit_core_content_modules(id)
2867
+
2868
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
2869
+  (0.7ms) COMMIT
2870
+ Migrating to CreateBitCoreSlideshows (20140417173056)
2871
+  (0.4ms) BEGIN
2872
+  (3.5ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2873
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
2874
+  (0.5ms) COMMIT
2875
+ Migrating to CreateBitCoreSlides (20140417174159)
2876
+  (0.4ms) BEGIN
2877
+  (6.0ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2878
+  (1.9ms)  ALTER TABLE bit_core_slides
2879
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2880
+ DEFERRABLE INITIALLY IMMEDIATE
2881
+ 
2882
+  (2.0ms) ALTER TABLE bit_core_slides
2883
+ ADD CONSTRAINT fk_slideshows_slides
2884
+ FOREIGN KEY (bit_core_slideshow_id)
2885
+ REFERENCES bit_core_slideshows(id)
2886
+
2887
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
2888
+  (0.7ms) COMMIT
2889
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2890
+  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2891
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952177" is a system trigger
2892
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
2893
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
2894
+  (0.3ms) BEGIN
2895
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slideshows"
2896
+ Fixture Insert (1.2ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:58:25', '2014-06-20 16:58:25', 504123193)
2897
+ Fixture Delete (0.9ms) DELETE FROM "bit_core_slides"
2898
+ Fixture Insert (1.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:58:25', '2014-06-20 16:58:25', 538050605, 504123193)
2899
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:58:25', '2014-06-20 16:58:25', 958091673, 504123193)
2900
+ Fixture Insert (0.7ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:58:25', '2014-06-20 16:58:25', 236740868, 504123193)
2901
+  (0.5ms) COMMIT
2902
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2903
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952177" is a system trigger
2904
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
2905
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
2906
+  (0.2ms) BEGIN
2907
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2908
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2909
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2910
+  (0.2ms) ROLLBACK
2911
+  (0.1ms) BEGIN
2912
+  (0.3ms) ROLLBACK
2913
+  (0.1ms) BEGIN
2914
+  (0.3ms) ROLLBACK
2915
+  (0.2ms) BEGIN
2916
+  (0.2ms) ROLLBACK
2917
+  (0.1ms) BEGIN
2918
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2919
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2920
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2921
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2922
+  (0.2ms) SAVEPOINT active_record_1
2923
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
2924
+  (0.5ms) SELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position [["bit_core_slideshow_id", 504123193]]
2925
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2926
+ SQL (0.7ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-06-20 16:58:26.024659"]]
2927
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2928
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605 [["position", 2], ["updated_at", "2014-06-20 16:58:26.029190"]]
2929
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
2930
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673 [["position", 3], ["updated_at", "2014-06-20 16:58:26.032660"]]
2931
+  (0.4ms) SELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position [["bit_core_slideshow_id", 504123193]]
2932
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2933
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
2934
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
2935
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
2936
+  (0.3ms) ROLLBACK
2937
+  (0.2ms) BEGIN
2938
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2939
+  (0.5ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2940
+ BitCore::Slide Exists (0.9ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2941
+  (0.4ms) ROLLBACK
2942
+  (0.2ms) BEGIN
2943
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
2944
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2945
+  (0.2ms) SAVEPOINT active_record_1
2946
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
2947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2948
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2949
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2950
+  (0.2ms) SAVEPOINT active_record_1
2951
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
2952
+ SQL (0.8ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:58:26.074426"]]
2953
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2954
+  (0.6ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
2955
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2956
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2957
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
2958
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2959
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2960
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
2961
+  (0.2ms) ROLLBACK
2962
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2963
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2964
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2965
+ Migrating to CreateBitCoreTools (20140415210052)
2966
+  (0.2ms) BEGIN
2967
+  (5.0ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2968
+  (2.2ms) ALTER TABLE bit_core_tools
2969
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2970
+ DEFERRABLE INITIALLY IMMEDIATE
2971
+
2972
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
2973
+  (0.6ms) COMMIT
2974
+ Migrating to CreateBitCoreContentModules (20140415211458)
2975
+  (0.3ms) BEGIN
2976
+  (3.5ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2977
+  (1.7ms)  ALTER TABLE bit_core_content_modules
2978
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2979
+ DEFERRABLE INITIALLY IMMEDIATE
2980
+ 
2981
+  (2.4ms) ALTER TABLE bit_core_content_modules
2982
+ ADD CONSTRAINT fk_content_modules_tools
2983
+ FOREIGN KEY (bit_core_tool_id)
2984
+ REFERENCES bit_core_tools(id)
2985
+
2986
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
2987
+  (0.7ms) COMMIT
2988
+ Migrating to CreateBitCoreContentProviders (20140415213346)
2989
+  (0.5ms) BEGIN
2990
+  (5.6ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2991
+  (1.7ms)  ALTER TABLE bit_core_content_providers
2992
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2993
+ DEFERRABLE INITIALLY IMMEDIATE
2994
+ 
2995
+  (2.2ms) ALTER TABLE bit_core_content_providers
2996
+ ADD CONSTRAINT fk_content_providers_modules
2997
+ FOREIGN KEY (bit_core_content_module_id)
2998
+ REFERENCES bit_core_content_modules(id)
2999
+
3000
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
3001
+  (0.6ms) COMMIT
3002
+ Migrating to CreateBitCoreSlideshows (20140417173056)
3003
+  (0.4ms) BEGIN
3004
+  (3.7ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3005
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
3006
+  (0.5ms) COMMIT
3007
+ Migrating to CreateBitCoreSlides (20140417174159)
3008
+  (0.3ms) BEGIN
3009
+  (5.2ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3010
+  (1.9ms)  ALTER TABLE bit_core_slides
3011
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
3012
+ DEFERRABLE INITIALLY IMMEDIATE
3013
+ 
3014
+  (2.7ms) ALTER TABLE bit_core_slides
3015
+ ADD CONSTRAINT fk_slideshows_slides
3016
+ FOREIGN KEY (bit_core_slideshow_id)
3017
+ REFERENCES bit_core_slideshows(id)
3018
+
3019
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
3020
+  (0.7ms) COMMIT
3021
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3022
+  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3023
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3024
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3025
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3026
+  (0.2ms) BEGIN
3027
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slideshows"
3028
+ Fixture Insert (1.0ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:58:55', '2014-06-20 16:58:55', 504123193)
3029
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_slides"
3030
+ Fixture Insert (1.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:58:55', '2014-06-20 16:58:55', 538050605, 504123193)
3031
+ Fixture Insert (0.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:58:55', '2014-06-20 16:58:55', 958091673, 504123193)
3032
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:58:55', '2014-06-20 16:58:55', 236740868, 504123193)
3033
+  (0.5ms) COMMIT
3034
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3035
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3036
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3037
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3038
+  (0.2ms) BEGIN
3039
+  (0.3ms) ROLLBACK
3040
+  (0.2ms) BEGIN
3041
+  (0.2ms) ROLLBACK
3042
+  (0.2ms) BEGIN
3043
+  (0.2ms) ROLLBACK
3044
+  (0.2ms) BEGIN
3045
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3046
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3047
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3048
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3049
+  (0.2ms) SAVEPOINT active_record_1
3050
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
3051
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3052
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-06-20 16:58:55.567114"]]
3053
+ BitCore::Slide Load (0.9ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3054
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605 [["position", 2], ["updated_at", "2014-06-20 16:58:55.571952"]]
3055
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3056
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673 [["position", 3], ["updated_at", "2014-06-20 16:58:55.575726"]]
3057
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3058
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3059
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3060
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3061
+  (0.3ms) ROLLBACK
3062
+  (0.2ms) BEGIN
3063
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3064
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3065
+  (0.3ms) SAVEPOINT active_record_1
3066
+ SQL (0.5ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
3067
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3068
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3069
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3070
+  (0.2ms) SAVEPOINT active_record_1
3071
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3072
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:58:55.608493"]]
3073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3074
+  (0.7ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3075
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3076
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3077
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3078
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3079
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3080
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3081
+  (0.5ms) ROLLBACK
3082
+  (0.2ms) BEGIN
3083
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3084
+  (0.7ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3085
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3086
+  (0.2ms) ROLLBACK
3087
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3088
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3089
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3090
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3091
+  (0.3ms) BEGIN
3092
+ Fixture Delete (1.6ms) DELETE FROM "bit_core_slideshows"
3093
+ PG::ForeignKeyViolation: ERROR: update or delete on table "bit_core_slideshows" violates foreign key constraint "fk_slideshows_slides" on table "bit_core_slides"
3094
+ DETAIL: Key (id)=(504123193) is still referenced from table "bit_core_slides".
3095
+ : DELETE FROM "bit_core_slideshows"
3096
+  (0.2ms) ROLLBACK
3097
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3098
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3099
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3100
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3101
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3102
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3103
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3104
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3105
+  (0.2ms) BEGIN
3106
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_slideshows"
3107
+ PG::ForeignKeyViolation: ERROR: update or delete on table "bit_core_slideshows" violates foreign key constraint "fk_slideshows_slides" on table "bit_core_slides"
3108
+ DETAIL: Key (id)=(504123193) is still referenced from table "bit_core_slides".
3109
+ : DELETE FROM "bit_core_slideshows"
3110
+  (0.2ms) ROLLBACK
3111
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3112
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3113
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3114
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3115
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3116
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3117
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3118
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3119
+  (0.2ms) BEGIN
3120
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slideshows"
3121
+ PG::ForeignKeyViolation: ERROR: update or delete on table "bit_core_slideshows" violates foreign key constraint "fk_slideshows_slides" on table "bit_core_slides"
3122
+ DETAIL: Key (id)=(504123193) is still referenced from table "bit_core_slides".
3123
+ : DELETE FROM "bit_core_slideshows"
3124
+  (0.2ms) ROLLBACK
3125
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3126
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3127
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3128
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3129
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3130
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3131
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3132
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3133
+  (0.2ms) BEGIN
3134
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_slideshows"
3135
+ PG::ForeignKeyViolation: ERROR: update or delete on table "bit_core_slideshows" violates foreign key constraint "fk_slideshows_slides" on table "bit_core_slides"
3136
+ DETAIL: Key (id)=(504123193) is still referenced from table "bit_core_slides".
3137
+ : DELETE FROM "bit_core_slideshows"
3138
+  (0.2ms) ROLLBACK
3139
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3140
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3141
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3142
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3143
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3144
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3145
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3146
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3147
+  (0.2ms) BEGIN
3148
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slideshows"
3149
+ PG::ForeignKeyViolation: ERROR: update or delete on table "bit_core_slideshows" violates foreign key constraint "fk_slideshows_slides" on table "bit_core_slides"
3150
+ DETAIL: Key (id)=(504123193) is still referenced from table "bit_core_slides".
3151
+ : DELETE FROM "bit_core_slideshows"
3152
+  (0.2ms) ROLLBACK
3153
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3154
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3155
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3156
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3157
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3158
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3159
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3160
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3161
+  (0.2ms) BEGIN
3162
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slideshows"
3163
+ PG::ForeignKeyViolation: ERROR: update or delete on table "bit_core_slideshows" violates foreign key constraint "fk_slideshows_slides" on table "bit_core_slides"
3164
+ DETAIL: Key (id)=(504123193) is still referenced from table "bit_core_slides".
3165
+ : DELETE FROM "bit_core_slideshows"
3166
+  (0.2ms) ROLLBACK
3167
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3168
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952260" is a system trigger
3169
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3170
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3171
+  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
3172
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3173
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3174
+ Migrating to CreateBitCoreTools (20140415210052)
3175
+  (0.3ms) BEGIN
3176
+  (4.7ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
3177
+  (2.3ms) ALTER TABLE bit_core_tools
3178
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
3179
+ DEFERRABLE INITIALLY IMMEDIATE
3180
+
3181
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
3182
+  (0.8ms) COMMIT
3183
+ Migrating to CreateBitCoreContentModules (20140415211458)
3184
+  (0.3ms) BEGIN
3185
+  (3.6ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3186
+  (1.8ms)  ALTER TABLE bit_core_content_modules
3187
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
3188
+ DEFERRABLE INITIALLY IMMEDIATE
3189
+ 
3190
+  (2.3ms) ALTER TABLE bit_core_content_modules
3191
+ ADD CONSTRAINT fk_content_modules_tools
3192
+ FOREIGN KEY (bit_core_tool_id)
3193
+ REFERENCES bit_core_tools(id)
3194
+
3195
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
3196
+  (0.6ms) COMMIT
3197
+ Migrating to CreateBitCoreContentProviders (20140415213346)
3198
+  (0.5ms) BEGIN
3199
+  (5.5ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3200
+  (1.6ms)  ALTER TABLE bit_core_content_providers
3201
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
3202
+ DEFERRABLE INITIALLY IMMEDIATE
3203
+ 
3204
+  (2.8ms) ALTER TABLE bit_core_content_providers
3205
+ ADD CONSTRAINT fk_content_providers_modules
3206
+ FOREIGN KEY (bit_core_content_module_id)
3207
+ REFERENCES bit_core_content_modules(id)
3208
+
3209
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
3210
+  (0.6ms) COMMIT
3211
+ Migrating to CreateBitCoreSlideshows (20140417173056)
3212
+  (0.4ms) BEGIN
3213
+  (3.5ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3214
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
3215
+  (0.5ms) COMMIT
3216
+ Migrating to CreateBitCoreSlides (20140417174159)
3217
+  (0.3ms) BEGIN
3218
+  (5.3ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3219
+  (1.5ms)  ALTER TABLE bit_core_slides
3220
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
3221
+ DEFERRABLE INITIALLY IMMEDIATE
3222
+ 
3223
+  (2.3ms) ALTER TABLE bit_core_slides
3224
+ ADD CONSTRAINT fk_slideshows_slides
3225
+ FOREIGN KEY (bit_core_slideshow_id)
3226
+ REFERENCES bit_core_slideshows(id)
3227
+
3228
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
3229
+  (0.6ms) COMMIT
3230
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3231
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3232
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952343" is a system trigger
3233
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3234
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3235
+  (0.3ms) BEGIN
3236
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slideshows"
3237
+ Fixture Insert (1.0ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 16:59:25', '2014-06-20 16:59:25', 504123193)
3238
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_slides"
3239
+ Fixture Insert (1.6ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 16:59:25', '2014-06-20 16:59:25', 538050605, 504123193)
3240
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 16:59:25', '2014-06-20 16:59:25', 958091673, 504123193)
3241
+ Fixture Insert (0.7ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 16:59:25', '2014-06-20 16:59:25', 236740868, 504123193)
3242
+  (0.4ms) COMMIT
3243
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3244
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952343" is a system trigger
3245
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3246
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3247
+  (0.2ms) BEGIN
3248
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3249
+  (0.6ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3250
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3251
+  (0.3ms) ROLLBACK
3252
+  (0.2ms) BEGIN
3253
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3254
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3255
+  (0.2ms) SAVEPOINT active_record_1
3256
+ SQL (0.4ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
3257
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3258
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3259
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3260
+  (0.2ms) SAVEPOINT active_record_1
3261
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3262
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 16:59:25.480923"]]
3263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3264
+  (0.5ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3265
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3266
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3267
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3268
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3269
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3270
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3271
+  (0.2ms) ROLLBACK
3272
+  (0.2ms) BEGIN
3273
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3274
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3275
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3276
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3277
+  (0.2ms) SAVEPOINT active_record_1
3278
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
3279
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3280
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-06-20 16:59:25.504487"]]
3281
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3282
+ SQL (0.4ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605 [["position", 2], ["updated_at", "2014-06-20 16:59:25.507281"]]
3283
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3284
+ SQL (0.4ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673 [["position", 3], ["updated_at", "2014-06-20 16:59:25.509800"]]
3285
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3286
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3287
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3288
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3289
+  (0.2ms) ROLLBACK
3290
+  (0.2ms) BEGIN
3291
+  (0.3ms) ROLLBACK
3292
+  (0.2ms) BEGIN
3293
+  (0.3ms) ROLLBACK
3294
+  (0.2ms) BEGIN
3295
+  (0.2ms) ROLLBACK
3296
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
3297
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3298
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3299
+ Migrating to CreateBitCoreTools (20140415210052)
3300
+  (0.2ms) BEGIN
3301
+  (4.9ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
3302
+  (2.2ms) ALTER TABLE bit_core_tools
3303
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
3304
+ DEFERRABLE INITIALLY IMMEDIATE
3305
+
3306
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
3307
+  (0.7ms) COMMIT
3308
+ Migrating to CreateBitCoreContentModules (20140415211458)
3309
+  (0.4ms) BEGIN
3310
+  (3.6ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3311
+  (1.7ms)  ALTER TABLE bit_core_content_modules
3312
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
3313
+ DEFERRABLE INITIALLY IMMEDIATE
3314
+ 
3315
+  (2.5ms) ALTER TABLE bit_core_content_modules
3316
+ ADD CONSTRAINT fk_content_modules_tools
3317
+ FOREIGN KEY (bit_core_tool_id)
3318
+ REFERENCES bit_core_tools(id)
3319
+
3320
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
3321
+  (0.6ms) COMMIT
3322
+ Migrating to CreateBitCoreContentProviders (20140415213346)
3323
+  (0.4ms) BEGIN
3324
+  (6.4ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3325
+  (1.7ms)  ALTER TABLE bit_core_content_providers
3326
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
3327
+ DEFERRABLE INITIALLY IMMEDIATE
3328
+ 
3329
+  (2.2ms) ALTER TABLE bit_core_content_providers
3330
+ ADD CONSTRAINT fk_content_providers_modules
3331
+ FOREIGN KEY (bit_core_content_module_id)
3332
+ REFERENCES bit_core_content_modules(id)
3333
+
3334
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
3335
+  (0.6ms) COMMIT
3336
+ Migrating to CreateBitCoreSlideshows (20140417173056)
3337
+  (0.4ms) BEGIN
3338
+  (3.5ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3339
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
3340
+  (0.5ms) COMMIT
3341
+ Migrating to CreateBitCoreSlides (20140417174159)
3342
+  (0.3ms) BEGIN
3343
+  (8.4ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3344
+  (2.1ms)  ALTER TABLE bit_core_slides
3345
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
3346
+ DEFERRABLE INITIALLY IMMEDIATE
3347
+ 
3348
+  (2.5ms) ALTER TABLE bit_core_slides
3349
+ ADD CONSTRAINT fk_slideshows_slides
3350
+ FOREIGN KEY (bit_core_slideshow_id)
3351
+ REFERENCES bit_core_slideshows(id)
3352
+
3353
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
3354
+  (0.6ms) COMMIT
3355
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3356
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3357
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952426" is a system trigger
3358
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
3359
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
3360
+  (0.3ms) BEGIN
3361
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slideshows"
3362
+ Fixture Insert (1.0ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 17:02:38', '2014-06-20 17:02:38', 504123193)
3363
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
3364
+ Fixture Insert (1.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 17:02:38', '2014-06-20 17:02:38', 538050605, 504123193)
3365
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 17:02:38', '2014-06-20 17:02:38', 958091673, 504123193)
3366
+ Fixture Insert (0.4ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 17:02:38', '2014-06-20 17:02:38', 236740868, 504123193)
3367
+  (0.5ms) COMMIT
3368
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3369
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_952426" is a system trigger
3370
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
3371
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
3372
+  (0.1ms) BEGIN
3373
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3374
+  (0.6ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3375
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3376
+  (0.2ms) ROLLBACK
3377
+  (0.2ms) BEGIN
3378
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3379
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3380
+  (0.2ms) SAVEPOINT active_record_1
3381
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
3382
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3383
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3384
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3385
+  (0.3ms) SAVEPOINT active_record_1
3386
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3387
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 17:02:38.245977"]]
3388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3389
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3390
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3391
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3392
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3393
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3394
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3395
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3396
+  (0.3ms) ROLLBACK
3397
+  (0.2ms) BEGIN
3398
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3399
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3400
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3401
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3402
+  (0.2ms) SAVEPOINT active_record_1
3403
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
3404
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3405
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-06-20 17:02:38.266749"]]
3406
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3407
+ SQL (0.4ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605 [["position", 2], ["updated_at", "2014-06-20 17:02:38.269236"]]
3408
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3409
+ SQL (0.4ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673 [["position", 3], ["updated_at", "2014-06-20 17:02:38.271834"]]
3410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3411
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3412
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3413
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3414
+  (0.2ms) ROLLBACK
3415
+  (0.2ms) BEGIN
3416
+  (0.2ms) ROLLBACK
3417
+  (0.2ms) BEGIN
3418
+  (0.3ms) ROLLBACK
3419
+  (0.2ms) BEGIN
3420
+  (0.2ms) ROLLBACK