bit_core 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/bit_core/content_module.rb +4 -4
- data/app/models/bit_core/content_provider.rb +6 -0
- data/app/models/bit_core/tool.rb +4 -4
- data/lib/bit_core/version.rb +1 -1
- data/spec/dummy/log/test.log +182 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6043b98fb0fe82d9004e6ea1b9a55222aa4348
|
4
|
+
data.tar.gz: b0f2c3c86049ec592ecd593490ddfd5e6b51b6b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8415346437cb714f816f7464bfee83970919625a06d3353cc002578ac4faa331750ccf7cd44cf30b56159bd9c68e68c23de1292162a06a3e5ccc26dcac155c7f
|
7
|
+
data.tar.gz: 35da3aa2c00d2ffb5beec4e828eea9d9456ea3d8685d8e96580ff71326c866db27c95d75886acf55e7896408d5d6f9db1cf326b17b951cc05902a3f0e321b794
|
@@ -34,14 +34,14 @@ module BitCore
|
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
37
|
+
def last_position
|
38
|
+
content_providers.order(:position).last.try(:position) || 0
|
39
|
+
end
|
40
|
+
|
37
41
|
private
|
38
42
|
|
39
43
|
def next_position
|
40
44
|
last_position + 1
|
41
45
|
end
|
42
|
-
|
43
|
-
def last_position
|
44
|
-
content_providers.order(:position).last.try(:position) || 0
|
45
|
-
end
|
46
46
|
end
|
47
47
|
end
|
@@ -40,6 +40,12 @@ module BitCore
|
|
40
40
|
show_next_nav
|
41
41
|
end
|
42
42
|
|
43
|
+
# Returns a human readable string extracted from the ContentProvider class
|
44
|
+
# name.
|
45
|
+
def pretty_label
|
46
|
+
self.class.to_s.split("::").last.underscore.gsub(/_/, " ")
|
47
|
+
end
|
48
|
+
|
43
49
|
private
|
44
50
|
|
45
51
|
def template_path_exists
|
data/app/models/bit_core/tool.rb
CHANGED
@@ -23,14 +23,14 @@ module BitCore
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
def last_position
|
27
|
+
content_modules.order(:position).last.try(:position) || 0
|
28
|
+
end
|
29
|
+
|
26
30
|
private
|
27
31
|
|
28
32
|
def next_position
|
29
33
|
last_position + 1
|
30
34
|
end
|
31
|
-
|
32
|
-
def last_position
|
33
|
-
content_modules.order(:position).last.try(:position) || 0
|
34
|
-
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/bit_core/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -7494,3 +7494,185 @@ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_14
|
|
7494
7494
|
[1m[36mBitCore::ContentModule Load (0.4ms)[0m [1mSELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1[0m [["id", 437912910]]
|
7495
7495
|
[1m[35mBitCore::ContentProvider Load (0.4ms)[0m SELECT "bit_core_content_providers".* FROM "bit_core_content_providers" WHERE "bit_core_content_providers"."bit_core_content_module_id" = $1 AND "bit_core_content_providers"."position" = 8 ORDER BY "bit_core_content_providers"."id" ASC LIMIT 1 [["bit_core_content_module_id", 437912910]]
|
7496
7496
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7497
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
7498
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7499
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7500
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
7501
|
+
[1m[35m (0.3ms)[0m BEGIN
|
7502
|
+
[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
|
7503
|
+
[1m[35m (2.2ms)[0m ALTER TABLE bit_core_tools
|
7504
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
7505
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7506
|
+
|
7507
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
7508
|
+
[1m[35m (0.7ms)[0m COMMIT
|
7509
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
7510
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7511
|
+
[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)
|
7512
|
+
[1m[36m (1.7ms)[0m [1m ALTER TABLE bit_core_content_modules
|
7513
|
+
ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
|
7514
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7515
|
+
[0m
|
7516
|
+
[1m[35m (2.6ms)[0m ALTER TABLE bit_core_content_modules
|
7517
|
+
ADD CONSTRAINT fk_content_modules_tools
|
7518
|
+
FOREIGN KEY (bit_core_tool_id)
|
7519
|
+
REFERENCES bit_core_tools(id)
|
7520
|
+
|
7521
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
7522
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7523
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
7524
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7525
|
+
[1m[35m (5.0ms)[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)
|
7526
|
+
[1m[36m (1.4ms)[0m [1m ALTER TABLE bit_core_content_providers
|
7527
|
+
ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
|
7528
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7529
|
+
[0m
|
7530
|
+
[1m[35m (1.9ms)[0m ALTER TABLE bit_core_content_providers
|
7531
|
+
ADD CONSTRAINT fk_content_providers_modules
|
7532
|
+
FOREIGN KEY (bit_core_content_module_id)
|
7533
|
+
REFERENCES bit_core_content_modules(id)
|
7534
|
+
|
7535
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
7536
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7537
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
7538
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7539
|
+
[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)
|
7540
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
7541
|
+
[1m[35m (0.5ms)[0m COMMIT
|
7542
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
7543
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7544
|
+
[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)
|
7545
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
7546
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
7547
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7548
|
+
[0m
|
7549
|
+
[1m[35m (1.9ms)[0m ALTER TABLE bit_core_slides
|
7550
|
+
ADD CONSTRAINT fk_slideshows_slides
|
7551
|
+
FOREIGN KEY (bit_core_slideshow_id)
|
7552
|
+
REFERENCES bit_core_slideshows(id)
|
7553
|
+
|
7554
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
7555
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7556
|
+
Migrating to AddOptionsToSlides (20140620174146)
|
7557
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7558
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
|
7559
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140620174146"]]
|
7560
|
+
[1m[35m (0.4ms)[0m COMMIT
|
7561
|
+
Migrating to AddConfigFieldsToProviders (20140620174147)
|
7562
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7563
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)
|
7564
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)[0m
|
7565
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text
|
7566
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean[0m
|
7567
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text
|
7568
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140620174147"]]
|
7569
|
+
[1m[35m (0.7ms)[0m COMMIT
|
7570
|
+
Migrating to AddTypeToContentModules (20140625133118)
|
7571
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
7572
|
+
[1m[35m (2.4ms)[0m ALTER TABLE "bit_core_content_modules" ADD COLUMN "type" character varying(255)
|
7573
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140625133118"]]
|
7574
|
+
[1m[35m (0.5ms)[0m COMMIT
|
7575
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7576
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL[0m
|
7577
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_1535258" is a system trigger
|
7578
|
+
: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL
|
7579
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER
|
7580
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
7581
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "bit_core_slideshows"
|
7582
|
+
[1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-07-02 18:03:52', '2014-07-02 18:03:52', 504123193)[0m
|
7583
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "bit_core_slides"
|
7584
|
+
[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-07-02 18:03:52', '2014-07-02 18:03:52', 538050605, 504123193)[0m
|
7585
|
+
[1m[35mFixture Insert (0.7ms)[0m INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-07-02 18:03:52', '2014-07-02 18:03:52', 958091673, 504123193)
|
7586
|
+
[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-07-02 18:03:52', '2014-07-02 18:03:52', 236740868, 504123193)[0m
|
7587
|
+
[1m[35m (0.4ms)[0m COMMIT
|
7588
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL[0m
|
7589
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_1535258" is a system trigger
|
7590
|
+
: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL
|
7591
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER
|
7592
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7593
|
+
[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]]
|
7594
|
+
[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]]
|
7595
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
7596
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1[0m [["id", 958091673]]
|
7597
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
7598
|
+
[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]]
|
7599
|
+
[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]]
|
7600
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7601
|
+
[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
|
7602
|
+
[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-07-02 18:03:52.438870"]]
|
7603
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
7604
|
+
[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]]
|
7605
|
+
[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]]
|
7606
|
+
[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]]
|
7607
|
+
[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]]
|
7608
|
+
[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]]
|
7609
|
+
[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]]
|
7610
|
+
[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]]
|
7611
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
7612
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7613
|
+
[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]]
|
7614
|
+
[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]]
|
7615
|
+
[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
|
7616
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7617
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7618
|
+
[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]]
|
7619
|
+
[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]]
|
7620
|
+
[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]]
|
7621
|
+
[1m[35mBitCore::Slideshow Load (0.3ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
7622
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
7623
|
+
[1m[35m (0.2ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
7624
|
+
[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]]
|
7625
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-07-02 18:03:52.462889"]]
|
7626
|
+
[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]]
|
7627
|
+
[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-07-02 18:03:52.465248"]]
|
7628
|
+
[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]]
|
7629
|
+
[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-07-02 18:03:52.467740"]]
|
7630
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7631
|
+
[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]]
|
7632
|
+
[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]]
|
7633
|
+
[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]]
|
7634
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7635
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7636
|
+
[1m[36mBitCore::ContentProvider Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1[0m
|
7637
|
+
[1m[35mBitCore::ContentProvider Exists (0.5ms)[0m SELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1
|
7638
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7639
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7640
|
+
[1m[36mBitCore::ContentProvider Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1[0m
|
7641
|
+
[1m[35mBitCore::ContentProvider Exists (0.5ms)[0m SELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1
|
7642
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7643
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7644
|
+
[1m[36mBitCore::ContentProvider Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1[0m
|
7645
|
+
[1m[35mBitCore::ContentProvider Exists (0.5ms)[0m SELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1
|
7646
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
7647
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL
|
7648
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_1535258" is a system trigger
|
7649
|
+
: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL
|
7650
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER[0m
|
7651
|
+
[1m[35m (0.3ms)[0m BEGIN
|
7652
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "bit_core_tools"[0m
|
7653
|
+
[1m[35mFixture Insert (0.7ms)[0m INSERT INTO "bit_core_tools" ("title", "created_at", "updated_at", "id") VALUES ('Home', '2014-07-02 18:03:52', '2014-07-02 18:03:52', 836111569)
|
7654
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "bit_core_content_modules"[0m
|
7655
|
+
[1m[35mFixture Insert (1.5ms)[0m INSERT INTO "bit_core_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_core_tool_id") VALUES ('Landing', 1, '2014-07-02 18:03:52', '2014-07-02 18:03:52', 437912910, 836111569)
|
7656
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "bit_core_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_core_tool_id") VALUES ('But wait, there''s more', 2, '2014-07-02 18:03:52', '2014-07-02 18:03:52', 511237275, 836111569)[0m
|
7657
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "bit_core_content_providers"
|
7658
|
+
[1m[36mFixture Insert (1.3ms)[0m [1mINSERT INTO "bit_core_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_core_content_module_id") VALUES (1, 'BitCore::ContentProviders::SlideshowProvider', '2014-07-02 18:03:52', '2014-07-02 18:03:52', 555816777, 437912910)[0m
|
7659
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "bit_core_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_core_content_module_id") VALUES (1, 'BitCore::ContentProviders::SlideshowProvider', '2014-07-02 18:03:52', '2014-07-02 18:03:52', 46790607, 511237275)
|
7660
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
7661
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL
|
7662
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_1535258" is a system trigger
|
7663
|
+
: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL
|
7664
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER[0m
|
7665
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7666
|
+
[1m[36mBitCore::ContentModule Load (0.7ms)[0m [1mSELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1[0m [["id", 437912910]]
|
7667
|
+
[1m[35mBitCore::ContentProvider Load (0.9ms)[0m SELECT "bit_core_content_providers".* FROM "bit_core_content_providers" WHERE "bit_core_content_providers"."bit_core_content_module_id" = $1 AND "bit_core_content_providers"."position" = 1 ORDER BY "bit_core_content_providers"."id" ASC LIMIT 1 [["bit_core_content_module_id", 437912910]]
|
7668
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
7669
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7670
|
+
[1m[36mBitCore::ContentModule Load (0.5ms)[0m [1mSELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1[0m [["id", 437912910]]
|
7671
|
+
[1m[35mBitCore::ContentProvider Load (0.5ms)[0m SELECT "bit_core_content_providers".* FROM "bit_core_content_providers" WHERE "bit_core_content_providers"."bit_core_content_module_id" = $1 AND "bit_core_content_providers"."position" = 8 ORDER BY "bit_core_content_providers"."id" ASC LIMIT 1 [["bit_core_content_module_id", 437912910]]
|
7672
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7673
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7674
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7675
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7676
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7677
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7678
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|