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.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/models/bit_core/slide.rb +0 -9
- data/app/models/bit_core/slideshow.rb +31 -1
- data/lib/bit_core/version.rb +1 -1
- data/spec/dummy/config/database.yml +1 -0
- data/spec/dummy/log/test.log +2244 -0
- data/spec/models/bit_core/slide_spec.rb +0 -13
- data/spec/models/bit_core/slideshow_spec.rb +44 -0
- metadata +6 -4
data/spec/dummy/log/test.log
CHANGED
@@ -1174,3 +1174,2247 @@ Migrating to CreateBitCoreSlides (20140417174159)
|
|
1174
1174
|
[1m[35m (0.2ms)[0m ROLLBACK
|
1175
1175
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1176
1176
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1177
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1178
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1179
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1180
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1181
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1182
|
+
[1m[36m (5.1ms)[0m [1mCREATE 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) [0m
|
1183
|
+
[1m[35m (2.4ms)[0m ALTER TABLE bit_core_tools
|
1184
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1185
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1186
|
+
|
1187
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1188
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1189
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1190
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1191
|
+
[1m[35m (3.8ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1196
|
+
[1m[35m (2.9ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1202
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1203
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1204
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1205
|
+
[1m[35m (6.3ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
1210
|
+
[1m[35m (2.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1216
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1217
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1218
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1219
|
+
[1m[35m (6.1ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1220
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1221
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1222
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1223
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1224
|
+
[1m[35m (5.5ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m ALTER TABLE bit_core_slides
|
1226
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1227
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1228
|
+
[0m
|
1229
|
+
[1m[35m (2.0ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1235
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1236
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1237
|
+
[1m[36m (1.3ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1242
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
1243
|
+
[1m[36mFixture Insert (2.1ms)[0m [1mINSERT 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)[0m
|
1244
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slides"
|
1245
|
+
[1m[36mFixture Insert (3.6ms)[0m [1mINSERT 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)[0m
|
1246
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
1248
|
+
[1m[35m (0.4ms)[0m COMMIT
|
1249
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1254
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1255
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1256
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1257
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1258
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1259
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1260
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1261
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1262
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1263
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1264
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1265
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1266
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1267
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1268
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1269
|
+
[1m[36m (5.2ms)[0m [1mCREATE 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) [0m
|
1270
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
1271
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1272
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1273
|
+
|
1274
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1275
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1276
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1277
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1278
|
+
[1m[35m (3.8ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m 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
|
+
[0m
|
1283
|
+
[1m[35m (2.8ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1289
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1290
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1291
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1292
|
+
[1m[35m (6.4ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m 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
|
+
[0m
|
1297
|
+
[1m[35m (2.6ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1303
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1304
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1305
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1306
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1307
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1308
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1309
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1310
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1311
|
+
[1m[35m (6.2ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1m ALTER TABLE bit_core_slides
|
1313
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1314
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1315
|
+
[0m
|
1316
|
+
[1m[35m (2.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1322
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1323
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1324
|
+
[1m[36m (1.2ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1329
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "bit_core_slideshows"
|
1330
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
1331
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "bit_core_slides"
|
1332
|
+
[1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m
|
1333
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
1335
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1336
|
+
[1m[36m (0.6ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1341
|
+
[1m[35mBitCore::Slide Load (0.8ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1342
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1343
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1344
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1345
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1346
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1347
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1348
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1349
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1350
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1351
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1352
|
+
[1m[36mBitCore::Slideshow Load (0.6ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
1353
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1354
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
1355
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1356
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1357
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1358
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1359
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1360
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1361
|
+
[1m[36m (4.8ms)[0m [1mCREATE 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) [0m
|
1362
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
1363
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1364
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1365
|
+
|
1366
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1367
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1368
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1369
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1370
|
+
[1m[35m (3.5ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1375
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1381
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1382
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1383
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1384
|
+
[1m[35m (5.4ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1389
|
+
[1m[35m (3.0ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1395
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1396
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1397
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1398
|
+
[1m[35m (3.7ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1399
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1400
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1401
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1402
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1403
|
+
[1m[35m (5.2ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
1405
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1406
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1407
|
+
[0m
|
1408
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1414
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1415
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1416
|
+
[1m[36m (1.2ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1421
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
1422
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m
|
1423
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
1424
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
1425
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
1427
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1428
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1433
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1434
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1435
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1436
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1437
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1438
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1439
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1440
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1441
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1442
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1443
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1444
|
+
[1m[36mBitCore::Slideshow Load (0.5ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
1445
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1446
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
1447
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1448
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1449
|
+
[1m[35m (2.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1450
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1451
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1452
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1453
|
+
[1m[36m (5.0ms)[0m [1mCREATE 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) [0m
|
1454
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
1455
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1456
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1457
|
+
|
1458
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1459
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1460
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1461
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1462
|
+
[1m[35m (3.8ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1467
|
+
[1m[35m (2.7ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1473
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1474
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1475
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1476
|
+
[1m[35m (5.9ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1481
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1487
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1488
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1489
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1490
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1491
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1492
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1493
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1494
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1495
|
+
[1m[35m (5.6ms)[0m 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
|
+
[1m[36m (2.6ms)[0m [1m ALTER TABLE bit_core_slides
|
1497
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1498
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1499
|
+
[0m
|
1500
|
+
[1m[35m (2.5ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1506
|
+
[1m[35m (0.8ms)[0m COMMIT
|
1507
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1508
|
+
[1m[36m (1.1ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1513
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
1514
|
+
[1m[36mFixture Insert (0.9ms)[0m [1mINSERT 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)[0m
|
1515
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
1516
|
+
[1m[36mFixture Insert (1.3ms)[0m [1mINSERT 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)[0m
|
1517
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
1519
|
+
[1m[35m (0.4ms)[0m COMMIT
|
1520
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1525
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1526
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1527
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1528
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1529
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1530
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1532
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1533
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1534
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1535
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1536
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
1537
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1538
|
+
[1m[36mBitCore::Slide Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
1539
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1540
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1541
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
1542
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1543
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1544
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1545
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1546
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1547
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1548
|
+
[1m[36m (4.8ms)[0m [1mCREATE 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) [0m
|
1549
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
1550
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1551
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1552
|
+
|
1553
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1554
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1555
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1556
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1557
|
+
[1m[35m (3.9ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1562
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1568
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1569
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1570
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1571
|
+
[1m[35m (5.6ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m 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
|
+
[0m
|
1576
|
+
[1m[35m (2.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1582
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1583
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1584
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1585
|
+
[1m[35m (3.8ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1586
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1587
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1588
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1589
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1590
|
+
[1m[35m (7.4ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m ALTER TABLE bit_core_slides
|
1592
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1593
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1594
|
+
[0m
|
1595
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1601
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1602
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1603
|
+
[1m[36m (0.9ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1608
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
1609
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m
|
1610
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slides"
|
1611
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
1612
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
1614
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1615
|
+
[1m[36m (0.6ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1620
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1621
|
+
[1m[36mBitCore::Slide Load (0.7ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1622
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1623
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1624
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1625
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1626
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1627
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1628
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1629
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1630
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1631
|
+
[1m[36mBitCore::Slideshow Load (0.5ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
1632
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1633
|
+
[1m[36mBitCore::Slide Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
1634
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1635
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1636
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
1637
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1638
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1639
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
1640
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1641
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
1642
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1643
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
1644
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1645
|
+
[1m[36m (4.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1646
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1648
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1649
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1650
|
+
[1m[36m (4.8ms)[0m [1mCREATE 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) [0m
|
1651
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
1652
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1653
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1654
|
+
|
1655
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1656
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1657
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1658
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1659
|
+
[1m[35m (3.7ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1664
|
+
[1m[35m (2.6ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1670
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1671
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1672
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1673
|
+
[1m[35m (7.2ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
1678
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1684
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1685
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1686
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1687
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1688
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1689
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1690
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1691
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
1692
|
+
[1m[35m (6.8ms)[0m 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
|
+
[1m[36m (2.0ms)[0m [1m ALTER TABLE bit_core_slides
|
1694
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1695
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1696
|
+
[0m
|
1697
|
+
[1m[35m (2.9ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1703
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1704
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1705
|
+
[1m[36m (1.3ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1710
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
1711
|
+
[1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m
|
1712
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slides"
|
1713
|
+
[1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m
|
1714
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m
|
1716
|
+
[1m[35m (0.5ms)[0m COMMIT
|
1717
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1722
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
1723
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1724
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1725
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
1726
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1727
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
1728
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1729
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
1730
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1731
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1732
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1733
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
1734
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1735
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
1736
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1737
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1738
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1739
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1740
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1741
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1742
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1743
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1744
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1745
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1746
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1747
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1748
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1749
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1750
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1751
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1752
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1753
|
+
[1m[36m (5.0ms)[0m [1mCREATE 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) [0m
|
1754
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
1755
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1756
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1757
|
+
|
1758
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1759
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1760
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1761
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1762
|
+
[1m[35m (3.5ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1m 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
|
+
[0m
|
1767
|
+
[1m[35m (3.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1773
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1774
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1775
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1776
|
+
[1m[35m (5.4ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
1781
|
+
[1m[35m (2.9ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1787
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1788
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1789
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1790
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1791
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1792
|
+
[1m[35m (0.4ms)[0m COMMIT
|
1793
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1794
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1795
|
+
[1m[35m (5.4ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m ALTER TABLE bit_core_slides
|
1797
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1798
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1799
|
+
[0m
|
1800
|
+
[1m[35m (2.6ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1806
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1807
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1808
|
+
[1m[36m (0.9ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1813
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slideshows"
|
1814
|
+
[1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m
|
1815
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slides"
|
1816
|
+
[1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m
|
1817
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
1819
|
+
[1m[35m (0.4ms)[0m COMMIT
|
1820
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1825
|
+
[1m[35mBitCore::Slideshow Load (0.6ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
1826
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1827
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1828
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
1829
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1830
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
1831
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1832
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
1833
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1834
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
1835
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
1837
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1838
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1839
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
1840
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
1841
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1843
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1844
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1845
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1846
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1847
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1848
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1849
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1850
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
1851
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
1852
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
1853
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1854
|
+
[1m[36m (4.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1855
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1856
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1857
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1858
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1859
|
+
[1m[36m (5.0ms)[0m [1mCREATE 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) [0m
|
1860
|
+
[1m[35m (2.4ms)[0m ALTER TABLE bit_core_tools
|
1861
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1862
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1863
|
+
|
1864
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1865
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1866
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1867
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1868
|
+
[1m[35m (3.6ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1m 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
|
+
[0m
|
1873
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1879
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1880
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1881
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1882
|
+
[1m[35m (5.5ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
1887
|
+
[1m[35m (2.8ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
1893
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1894
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
1895
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1896
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
1897
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
1898
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1899
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
1900
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1901
|
+
[1m[35m (7.4ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m ALTER TABLE bit_core_slides
|
1903
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
1904
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1905
|
+
[0m
|
1906
|
+
[1m[35m (1.9ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
1912
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1913
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1914
|
+
[1m[36m (0.8ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1919
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
1920
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m
|
1921
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slides"
|
1922
|
+
[1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m
|
1923
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
1925
|
+
[1m[35m (0.4ms)[0m COMMIT
|
1926
|
+
[1m[36m (0.6ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1931
|
+
[1m[35mBitCore::Slideshow Load (0.6ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
1932
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1933
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1934
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
1935
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1936
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
1937
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1938
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
1939
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1940
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
1941
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
1943
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1945
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1946
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
1947
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
1948
|
+
[1m[36mBitCore::Slide Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
1949
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1950
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1951
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1952
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1953
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1954
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1955
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1956
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1957
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
1958
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
1959
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
1960
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
1961
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
1962
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1963
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1964
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
1965
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1966
|
+
[1m[36m (5.5ms)[0m [1mCREATE 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) [0m
|
1967
|
+
[1m[35m (2.6ms)[0m ALTER TABLE bit_core_tools
|
1968
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
1969
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
1970
|
+
|
1971
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
1972
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1973
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
1974
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1975
|
+
[1m[35m (6.3ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1m 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
|
+
[0m
|
1980
|
+
[1m[35m (3.6ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
1986
|
+
[1m[35m (0.7ms)[0m COMMIT
|
1987
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
1988
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1989
|
+
[1m[35m (5.6ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
1994
|
+
[1m[35m (2.0ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2000
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2001
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2002
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2003
|
+
[1m[35m (5.6ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2004
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2005
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2006
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2007
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2008
|
+
[1m[35m (6.8ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
2010
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2011
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2012
|
+
[0m
|
2013
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2019
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2020
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2021
|
+
[1m[36m (1.0ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2026
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slideshows"
|
2027
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m
|
2028
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
2029
|
+
[1m[36mFixture Insert (1.3ms)[0m [1mINSERT 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)[0m
|
2030
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
2032
|
+
[1m[35m (0.4ms)[0m COMMIT
|
2033
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2038
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2039
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2040
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2041
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2042
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2043
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2044
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2045
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2046
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2047
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2048
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2049
|
+
[1m[36mBitCore::Slideshow Load (0.5ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2050
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2051
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
2052
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2053
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2054
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2055
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2056
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2057
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2058
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2059
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2060
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2062
|
+
[1m[35mBitCore::Slide Exists (0.6ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:49:59.249275"]]
|
2064
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2065
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2066
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2068
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2070
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2071
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2072
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2073
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2074
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2075
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2076
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2077
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2078
|
+
[1m[36m (5.2ms)[0m [1mCREATE 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) [0m
|
2079
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
2080
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2081
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2082
|
+
|
2083
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2084
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2085
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2086
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2087
|
+
[1m[35m (3.7ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
2092
|
+
[1m[35m (2.5ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2098
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2099
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2100
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2101
|
+
[1m[35m (6.7ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m 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
|
+
[0m
|
2106
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2112
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2113
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2114
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2115
|
+
[1m[35m (6.4ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2116
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2117
|
+
[1m[35m (1.0ms)[0m COMMIT
|
2118
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2119
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2120
|
+
[1m[35m (6.6ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
2122
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2123
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2124
|
+
[0m
|
2125
|
+
[1m[35m (2.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2131
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2132
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2133
|
+
[1m[36m (1.2ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2138
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
2139
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
2140
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
2141
|
+
[1m[36mFixture Insert (1.6ms)[0m [1mINSERT 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)[0m
|
2142
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
2144
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2145
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2150
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2151
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2152
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2153
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2154
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2155
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2156
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2158
|
+
[1m[35mBitCore::Slide Exists (0.8ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:52:09.920982"]]
|
2160
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2161
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2162
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2164
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2166
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2167
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2168
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2169
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2170
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2171
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2172
|
+
[1m[35mBitCore::Slide Exists (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2174
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2175
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2176
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
2177
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
2178
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2179
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2180
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2181
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2182
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2183
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2184
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2185
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2186
|
+
[1m[35mBitCore::Slide Load (0.2ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2187
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2188
|
+
[1m[35mBitCore::Slide Load (0.2ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2189
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2190
|
+
[1m[36m (4.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2191
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2192
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2193
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2194
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2195
|
+
[1m[36m (4.7ms)[0m [1mCREATE 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) [0m
|
2196
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
2197
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2198
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2199
|
+
|
2200
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2201
|
+
[1m[35m (0.8ms)[0m COMMIT
|
2202
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2203
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2204
|
+
[1m[35m (3.9ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
2209
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2215
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2216
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2217
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2218
|
+
[1m[35m (5.9ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
2223
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2229
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2230
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2231
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2232
|
+
[1m[35m (6.0ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2233
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2234
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2235
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2236
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2237
|
+
[1m[35m (6.6ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
2239
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2240
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2241
|
+
[0m
|
2242
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2248
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2249
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2250
|
+
[1m[36m (1.0ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2255
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
2256
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m
|
2257
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slides"
|
2258
|
+
[1m[36mFixture Insert (1.3ms)[0m [1mINSERT 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)[0m
|
2259
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m
|
2261
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2262
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2267
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2268
|
+
[1m[36mBitCore::Slide Load (0.7ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2269
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2270
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2272
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2273
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2275
|
+
[1m[35mBitCore::Slide Exists (0.8ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:53:29.270702"]]
|
2277
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2278
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2279
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2281
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2283
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2284
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2285
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2286
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2287
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2288
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2289
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2290
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2291
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2292
|
+
[1m[36m (0.3ms)[0m [1mSET CONSTRAINTS bit_core_slide_position DEFERRED[0m
|
2293
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.5ms)[0m [1mSELECT 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[0m
|
2295
|
+
[1m[35mBitCore::Slide Load (0.7ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 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[0m
|
2297
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.5ms)[0m [1mSELECT 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[0m
|
2299
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2300
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
|
2301
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2302
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2303
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2304
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2305
|
+
[1m[35mBitCore::Slide Exists (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2307
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2308
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2309
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2310
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2311
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2312
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2313
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2314
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2315
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
2316
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
2317
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2318
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2319
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2320
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2321
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2322
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2323
|
+
[1m[36m (4.9ms)[0m [1mCREATE 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) [0m
|
2324
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
2325
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2326
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2327
|
+
|
2328
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2329
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2330
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2331
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2332
|
+
[1m[35m (3.7ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
2337
|
+
[1m[35m (3.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2343
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2344
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2345
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2346
|
+
[1m[35m (7.2ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
2351
|
+
[1m[35m (3.0ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2357
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2358
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2359
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2360
|
+
[1m[35m (5.5ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2361
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2362
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2363
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2364
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2365
|
+
[1m[35m (7.2ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
2367
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2368
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2369
|
+
[0m
|
2370
|
+
[1m[35m (2.0ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2376
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2377
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2378
|
+
[1m[36m (0.9ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2383
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
2384
|
+
[1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m
|
2385
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
2386
|
+
[1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m
|
2387
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
2389
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2390
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2395
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2396
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2397
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2398
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2399
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2400
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2401
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2402
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2403
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2404
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2405
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2406
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2407
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
2408
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
2409
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2410
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2411
|
+
[1m[35m (0.3ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
2412
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
|
2413
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
|
2415
|
+
[1m[35mBitCore::Slide Exists (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
2417
|
+
[1m[35mBitCore::Slide Exists (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2422
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2424
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2425
|
+
[1m[36mBitCore::Slideshow Load (0.5ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2426
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2427
|
+
[1m[36mBitCore::Slide Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
2428
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2429
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2430
|
+
[1m[35mBitCore::Slideshow Load (0.6ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2431
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2432
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2433
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2434
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2435
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2436
|
+
[1m[35mBitCore::Slide Load (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2438
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:54:50.982199"]]
|
2440
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2441
|
+
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2442
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2444
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2446
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2447
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2448
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2449
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2450
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2451
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2452
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2453
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2454
|
+
[1m[36m (4.7ms)[0m [1mCREATE 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) [0m
|
2455
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
2456
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2457
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2458
|
+
|
2459
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2460
|
+
[1m[35m (0.8ms)[0m COMMIT
|
2461
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2462
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2463
|
+
[1m[35m (3.4ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
2468
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2474
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2475
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2476
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2477
|
+
[1m[35m (5.6ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
2482
|
+
[1m[35m (2.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2488
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2489
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2490
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2491
|
+
[1m[35m (3.8ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2492
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2493
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2494
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2495
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2496
|
+
[1m[35m (6.6ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1m ALTER TABLE bit_core_slides
|
2498
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2499
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2500
|
+
[0m
|
2501
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2507
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2508
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2509
|
+
[1m[36m (1.0ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2514
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
2515
|
+
[1m[36mFixture Insert (0.9ms)[0m [1mINSERT 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)[0m
|
2516
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
2517
|
+
[1m[36mFixture Insert (1.3ms)[0m [1mINSERT 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)[0m
|
2518
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
2520
|
+
[1m[35m (0.4ms)[0m COMMIT
|
2521
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2526
|
+
[1m[35mBitCore::Slideshow Load (0.7ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2527
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2528
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2529
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2530
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2531
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2532
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2534
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:55:11.164996"]]
|
2536
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2537
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2538
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2540
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2542
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2543
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2544
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2545
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2546
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2547
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2548
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2549
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2550
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2551
|
+
[1m[36m (0.3ms)[0m [1mSET CONSTRAINTS bit_core_slide_position DEFERRED[0m
|
2552
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 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[0m
|
2554
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.5ms)[0m [1mSELECT 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[0m
|
2556
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.5ms)[0m [1mSELECT 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[0m
|
2558
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2559
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2561
|
+
[1m[36mBitCore::Slideshow Load (0.3ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2562
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2563
|
+
[1m[36mBitCore::Slide Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
2564
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2565
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2566
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2567
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2568
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2569
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2570
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2571
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2572
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2573
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2574
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2575
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2576
|
+
[1m[36m (4.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2577
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2578
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2579
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2580
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2581
|
+
[1m[36m (4.8ms)[0m [1mCREATE 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) [0m
|
2582
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
2583
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2584
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2585
|
+
|
2586
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2587
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2588
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2589
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2590
|
+
[1m[35m (3.6ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1m 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
|
+
[0m
|
2595
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2601
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2602
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2603
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2604
|
+
[1m[35m (5.8ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m 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
|
+
[0m
|
2609
|
+
[1m[35m (2.6ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2615
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2616
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2617
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
2618
|
+
[1m[35m (5.5ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2619
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2620
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2621
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2622
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2623
|
+
[1m[35m (7.1ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
2625
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2626
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2627
|
+
[0m
|
2628
|
+
[1m[35m (1.9ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2634
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2635
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2636
|
+
[1m[36m (1.2ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2641
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slideshows"
|
2642
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m
|
2643
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
2644
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
2645
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m
|
2647
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2648
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2653
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2654
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2655
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2656
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2657
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2658
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2659
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2660
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2661
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2662
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2663
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2664
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2665
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
2666
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
2667
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2668
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2669
|
+
[1m[35m (0.3ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
2670
|
+
[1m[36m (0.4ms)[0m [1mSELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position[0m [["bit_core_slideshow_id", 504123193]]
|
2671
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.9ms)[0m [1mSELECT 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[0m
|
2673
|
+
[1m[35mBitCore::Slide Load (0.7ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.7ms)[0m [1mSELECT 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[0m
|
2675
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 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[0m
|
2677
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2679
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2681
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2682
|
+
[1m[36mBitCore::Slideshow Load (0.3ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2683
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2684
|
+
[1m[36mBitCore::Slide Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
2685
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2686
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2687
|
+
[1m[35mBitCore::Slideshow Load (0.6ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2688
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2689
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2690
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2691
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2692
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2693
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2695
|
+
[1m[35mBitCore::Slide Exists (1.1ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:56:28.427493"]]
|
2697
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2698
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2699
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2701
|
+
[1m[35mBitCore::Slide Load (0.7ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2703
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2704
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2705
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2706
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2707
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2708
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2709
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2710
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2711
|
+
[1m[36m (4.8ms)[0m [1mCREATE 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) [0m
|
2712
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
2713
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2714
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2715
|
+
|
2716
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2717
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2718
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2719
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2720
|
+
[1m[35m (3.6ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
2725
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2731
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2732
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2733
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2734
|
+
[1m[35m (5.9ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
2739
|
+
[1m[35m (2.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2745
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2746
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2747
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2748
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2749
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2750
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2751
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2752
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2753
|
+
[1m[35m (8.3ms)[0m 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
|
+
[1m[36m (2.5ms)[0m [1m ALTER TABLE bit_core_slides
|
2755
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2756
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2757
|
+
[0m
|
2758
|
+
[1m[35m (3.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2764
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2765
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2766
|
+
[1m[36m (0.9ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2771
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "bit_core_slideshows"
|
2772
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m
|
2773
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
2774
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
2775
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
2777
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2778
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2783
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2784
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2785
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2786
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2787
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2788
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
2789
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2790
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2791
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2792
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2793
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2794
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2795
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
2796
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2797
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
|
2798
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2799
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193]]
|
2801
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2802
|
+
[1m[36mBitCore::Slide Exists (0.8ms)[0m [1mSELECT 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[0m
|
2803
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2805
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2806
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2807
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2808
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2809
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
2811
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2813
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2814
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2815
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2816
|
+
[1m[36mBitCore::Slide Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
2817
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2818
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2819
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2820
|
+
[1m[36mBitCore::Slide Load (0.2ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2821
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2822
|
+
[1m[36mBitCore::Slideshow Load (0.3ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2823
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2824
|
+
[1m[36m (0.2ms)[0m [1mSET CONSTRAINTS bit_core_slide_position DEFERRED[0m
|
2825
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
|
2827
|
+
[1m[35mBitCore::Slide Exists (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2829
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2830
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2831
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2832
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2833
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2834
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2835
|
+
[1m[36m (4.8ms)[0m [1mCREATE 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) [0m
|
2836
|
+
[1m[35m (2.4ms)[0m ALTER TABLE bit_core_tools
|
2837
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2838
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2839
|
+
|
2840
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2841
|
+
[1m[35m (18.1ms)[0m COMMIT
|
2842
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2843
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2844
|
+
[1m[35m (14.5ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1m 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
|
+
[0m
|
2849
|
+
[1m[35m (3.0ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2855
|
+
[1m[35m (0.8ms)[0m COMMIT
|
2856
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2857
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2858
|
+
[1m[35m (5.7ms)[0m 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
|
+
[1m[36m (2.1ms)[0m [1m 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
|
+
[0m
|
2863
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
2869
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2870
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
2871
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2872
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2873
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
2874
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2875
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
2876
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2877
|
+
[1m[35m (6.0ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m ALTER TABLE bit_core_slides
|
2879
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2880
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2881
|
+
[0m
|
2882
|
+
[1m[35m (2.0ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
2888
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2889
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2890
|
+
[1m[36m (1.2ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2895
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slideshows"
|
2896
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m
|
2897
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "bit_core_slides"
|
2898
|
+
[1m[36mFixture Insert (1.6ms)[0m [1mINSERT 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)[0m
|
2899
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m
|
2901
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2902
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2907
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
2908
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2909
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2910
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2911
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2912
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2913
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2914
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2915
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2916
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2917
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2918
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2919
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
2920
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
2921
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2922
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2923
|
+
[1m[35m (0.3ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
2924
|
+
[1m[36m (0.5ms)[0m [1mSELECT "bit_core_slides".id FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position[0m [["bit_core_slideshow_id", 504123193]]
|
2925
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 1], ["updated_at", "2014-06-20 16:58:26.024659"]]
|
2927
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605[0m [["position", 2], ["updated_at", "2014-06-20 16:58:26.029190"]]
|
2929
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673[0m [["position", 3], ["updated_at", "2014-06-20 16:58:26.032660"]]
|
2931
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2933
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
2935
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2937
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2938
|
+
[1m[36mBitCore::Slideshow Load (0.4ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
2939
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
2940
|
+
[1m[36mBitCore::Slide Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1[0m
|
2941
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2942
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2943
|
+
[1m[35mBitCore::Slideshow Load (0.5ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
2944
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
2945
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2946
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
2947
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2948
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
2949
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2951
|
+
[1m[35mBitCore::Slide Exists (0.6ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:58:26.074426"]]
|
2953
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2954
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
2955
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
2957
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2959
|
+
[1m[35mBitCore::Slide Load (0.3ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
2960
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
2961
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2962
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2963
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2964
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2965
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
2966
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2967
|
+
[1m[36m (5.0ms)[0m [1mCREATE 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) [0m
|
2968
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
2969
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2970
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2971
|
+
|
2972
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
2973
|
+
[1m[35m (0.6ms)[0m COMMIT
|
2974
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
2975
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2976
|
+
[1m[35m (3.5ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
2981
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
2987
|
+
[1m[35m (0.7ms)[0m COMMIT
|
2988
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
2989
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2990
|
+
[1m[35m (5.6ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
2995
|
+
[1m[35m (2.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
3001
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3002
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
3003
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3004
|
+
[1m[35m (3.7ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
3005
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
3006
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3007
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
3008
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3009
|
+
[1m[35m (5.2ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1m ALTER TABLE bit_core_slides
|
3011
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
3012
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
3013
|
+
[0m
|
3014
|
+
[1m[35m (2.7ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
3020
|
+
[1m[35m (0.7ms)[0m COMMIT
|
3021
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3022
|
+
[1m[36m (1.3ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3027
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slideshows"
|
3028
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m
|
3029
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "bit_core_slides"
|
3030
|
+
[1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m
|
3031
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
3033
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3034
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3039
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3040
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3041
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3042
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3043
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3044
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3045
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
3046
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
3047
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
3048
|
+
[1m[36mBitCore::Slideshow Load (0.6ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
3049
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3050
|
+
[1m[36m (0.3ms)[0m [1mSET CONSTRAINTS bit_core_slide_position DEFERRED[0m
|
3051
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 1], ["updated_at", "2014-06-20 16:58:55.567114"]]
|
3053
|
+
[1m[35mBitCore::Slide Load (0.9ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605[0m [["position", 2], ["updated_at", "2014-06-20 16:58:55.571952"]]
|
3055
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673[0m [["position", 3], ["updated_at", "2014-06-20 16:58:55.575726"]]
|
3057
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3058
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
|
3059
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
|
3061
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3062
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3063
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
3064
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 958091673]]
|
3065
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3066
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
3067
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3068
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
3069
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3071
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868[0m [["position", 2], ["updated_at", "2014-06-20 16:58:55.608493"]]
|
3073
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3074
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
3075
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
3077
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
3079
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
|
3080
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1[0m [["bit_core_slideshow_id", 504123193]]
|
3081
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
3082
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3083
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
3084
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
3085
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3087
|
+
[1m[36m (1.0ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3092
|
+
[1m[35mFixture Delete (1.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3097
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
3101
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
3105
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3106
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "bit_core_slideshows"[0m
|
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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3111
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3120
|
+
[1m[35mFixture Delete (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3125
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
3129
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
3133
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3134
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "bit_core_slideshows"[0m
|
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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3139
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3148
|
+
[1m[35mFixture Delete (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3153
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
3157
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
3161
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3162
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "bit_core_slideshows"[0m
|
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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3167
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
3172
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3173
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3174
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
3175
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3176
|
+
[1m[36m (4.7ms)[0m [1mCREATE 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) [0m
|
3177
|
+
[1m[35m (2.3ms)[0m ALTER TABLE bit_core_tools
|
3178
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
3179
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
3180
|
+
|
3181
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
3182
|
+
[1m[35m (0.8ms)[0m COMMIT
|
3183
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
3184
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3185
|
+
[1m[35m (3.6ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1m 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
|
+
[0m
|
3190
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
3196
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3197
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
3198
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
3199
|
+
[1m[35m (5.5ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
3204
|
+
[1m[35m (2.8ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
3210
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3211
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
3212
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3213
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
3214
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
3215
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3216
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
3217
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3218
|
+
[1m[35m (5.3ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
3220
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
3221
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
3222
|
+
[0m
|
3223
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
3229
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3230
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3231
|
+
[1m[36m (1.0ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3236
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "bit_core_slideshows"
|
3237
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m
|
3238
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "bit_core_slides"
|
3239
|
+
[1m[36mFixture Insert (1.6ms)[0m [1mINSERT 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)[0m
|
3240
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m
|
3242
|
+
[1m[35m (0.4ms)[0m COMMIT
|
3243
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3248
|
+
[1m[35mBitCore::Slideshow Load (0.6ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
3249
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
3250
|
+
[1m[35mBitCore::Slide Exists (0.7ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3252
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3253
|
+
[1m[36mBitCore::Slideshow Load (0.6ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
3254
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
3255
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3256
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
|
3257
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3258
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193]]
|
3260
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3261
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 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[0m
|
3262
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3264
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
3265
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
3266
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
3267
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
3268
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
3270
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3272
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3273
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
3274
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
3275
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
3276
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
3277
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3278
|
+
[1m[35m (0.3ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
3279
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
|
3280
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
|
3282
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
3284
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3286
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
3288
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3290
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3291
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3292
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3293
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3294
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3295
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3296
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
3297
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3298
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3299
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
3300
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3301
|
+
[1m[36m (4.9ms)[0m [1mCREATE 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) [0m
|
3302
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
3303
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
3304
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
3305
|
+
|
3306
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
3307
|
+
[1m[35m (0.7ms)[0m COMMIT
|
3308
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
3309
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3310
|
+
[1m[35m (3.6ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
3315
|
+
[1m[35m (2.5ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
3321
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3322
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
3323
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3324
|
+
[1m[35m (6.4ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
3329
|
+
[1m[35m (2.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
3335
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3336
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
3337
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3338
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
3339
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
3340
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3341
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
3342
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3343
|
+
[1m[35m (8.4ms)[0m 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
|
+
[1m[36m (2.1ms)[0m [1m ALTER TABLE bit_core_slides
|
3345
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
3346
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
3347
|
+
[0m
|
3348
|
+
[1m[35m (2.5ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
3354
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3355
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3356
|
+
[1m[36m (1.0ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3361
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slideshows"
|
3362
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m
|
3363
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
3364
|
+
[1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m
|
3365
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
3367
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3368
|
+
[1m[36m (0.6ms)[0m [1mALTER 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[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3373
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
3374
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
3375
|
+
[1m[35mBitCore::Slide Exists (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3377
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3378
|
+
[1m[36mBitCore::Slideshow Load (0.5ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
3379
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
3380
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3381
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
|
3382
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3383
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193]]
|
3385
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3386
|
+
[1m[36mBitCore::Slide Exists (0.7ms)[0m [1mSELECT 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[0m
|
3387
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3389
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
3390
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
3391
|
+
[1m[35mBitCore::Slide Load (0.5ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
3392
|
+
[1m[36mBitCore::Slide Load (0.6ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
3393
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
3395
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3397
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3398
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
3399
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
3400
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
3401
|
+
[1m[35mBitCore::Slideshow Load (0.4ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
3402
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3403
|
+
[1m[35m (0.3ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
3404
|
+
[1m[36mBitCore::Slide Load (0.7ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
|
3405
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
|
3407
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
3409
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3411
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
3413
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3415
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3416
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3417
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3418
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3419
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3420
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|