spec/dummy/log/test.log in bit_player-0.2.0 vs spec/dummy/log/test.log in bit_player-0.2.1

- old
+ new

@@ -1568,5 +1568,271 @@  (0.3ms) ROLLBACK  (0.2ms) BEGIN BitPlayer::ContentModule Load (0.5ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]] BitPlayer::ContentProvider Load (0.9ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 8 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]]  (0.3ms) ROLLBACK +  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateBitPlayerContentModules (20140305231316) +  (0.2ms) BEGIN +  (7.1ms) CREATE TABLE "bit_player_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "context" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)  + SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305231316"]] +  (0.5ms) COMMIT +Migrating to CreateBitPlayerContentProviders (20140305231317) +  (0.4ms) BEGIN +  (5.1ms) CREATE TABLE "bit_player_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_player_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id") +  (3.1ms)  ALTER TABLE bit_player_content_providers + ADD CONSTRAINT fk_content_providers_modules + FOREIGN KEY (bit_player_content_module_id) + REFERENCES bit_player_content_modules(id) + + SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305231317"]] +  (0.9ms) COMMIT +Migrating to CreateBitPlayerParticipantStatuses (20140305233110) +  (0.4ms) BEGIN +  (3.4ms) CREATE TABLE "bit_player_participant_statuses" ("id" serial primary key, "context" character varying(255), "module_position" integer, "provider_position" integer, "content_position" integer, "participant_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id") + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305233110"]] +  (0.5ms) COMMIT +Migrating to CreateBitPlayerSlideshows (20140305234757) +  (0.3ms) BEGIN +  (3.3ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp) + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234757"]] +  (0.5ms) COMMIT +Migrating to CreateBitPlayerSlides (20140306000537) +  (0.3ms) BEGIN +  (5.0ms) CREATE TABLE "bit_player_slides" ("id" serial primary key, "title" character varying(255), "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_player_slideshow_id" integer NOT NULL, "type" character varying(255), "options" text, "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp) +  (1.2ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id") +  (2.1ms) ALTER TABLE bit_player_slides + ADD CONSTRAINT fk_slides_slideshows + FOREIGN KEY (bit_player_slideshow_id) + REFERENCES bit_player_slideshows(id) + +  (1.5ms)  ALTER TABLE bit_player_slides + ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position) + DEFERRABLE INITIALLY IMMEDIATE + + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140306000537"]] +  (0.6ms) COMMIT +Migrating to CreateBitPlayerTools (20140407201524) +  (0.4ms) BEGIN +  (3.3ms) CREATE TABLE "bit_player_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer, "is_home" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp, "updated_at" timestamp)  +  (1.3ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title") +  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position") + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140407201524"]] +  (0.5ms) COMMIT +Migrating to ChangeModuleContextToTool (20140407201525) +  (0.3ms) BEGIN +  (0.5ms) ALTER TABLE "bit_player_content_modules" ADD COLUMN "bit_player_tool_id" integer + BitPlayer::ContentModule Load (0.6ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" +  (0.4ms) ALTER TABLE "bit_player_content_modules" ALTER "bit_player_tool_id" SET NOT NULL +  (0.7ms) ALTER TABLE "bit_player_content_modules" DROP "context" +  (2.8ms)  ALTER TABLE bit_player_content_modules + ADD CONSTRAINT fk_content_modules_tools + FOREIGN KEY (bit_player_tool_id) + REFERENCES bit_player_tools(id) + + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140407201525"]] +  (0.5ms) COMMIT + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (2.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_205618" is a system trigger +: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_player_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER USER +  (0.2ms) BEGIN + Fixture Delete (0.7ms) DELETE FROM "bit_player_tools" + Fixture Insert (1.1ms) INSERT INTO "bit_player_tools" ("title", "created_at", "updated_at", "id") VALUES ('Home', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 836111569) + Fixture Delete (0.5ms) DELETE FROM "bit_player_content_modules" + Fixture Insert (1.3ms) INSERT INTO "bit_player_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_player_tool_id") VALUES ('Landing', 1, '2014-04-09 03:22:14', '2014-04-09 03:22:14', 437912910, 836111569) + Fixture Insert (0.5ms) INSERT INTO "bit_player_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_player_tool_id") VALUES ('But wait, there''s more', 2, '2014-04-09 03:22:14', '2014-04-09 03:22:14', 511237275, 836111569) + Fixture Delete (0.7ms) DELETE FROM "bit_player_content_providers" + Fixture Insert (1.0ms) INSERT INTO "bit_player_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_player_content_module_id") VALUES (1, 'BitPlayer::ContentProviders::SlideshowProvider', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 555816777, 437912910) + Fixture Insert (0.4ms) INSERT INTO "bit_player_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_player_content_module_id") VALUES (1, 'BitPlayer::ContentProviders::SlideshowProvider', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 46790607, 511237275) +  (0.4ms) COMMIT +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_205618" is a system trigger +: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_player_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER USER +  (0.1ms) BEGIN + BitPlayer::ContentModule Load (1.2ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]] + BitPlayer::ContentProvider Load (1.6ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 8 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + BitPlayer::ContentModule Load (0.5ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]] + BitPlayer::ContentProvider Load (0.7ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 1 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + BitPlayer::ContentModule Load (0.6ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."bit_player_tool_id" = 1 AND "bit_player_content_modules"."position" = 1 ORDER BY "bit_player_content_modules"."id" ASC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_205618" is a system trigger +: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_player_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER USER +  (0.3ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "bit_player_slideshows" + Fixture Insert (0.7ms) INSERT INTO "bit_player_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 504123193) + Fixture Delete (0.7ms) DELETE FROM "bit_player_slides" + Fixture Insert (1.4ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 538050605, 504123193) + Fixture Insert (0.6ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 958091673, 504123193) + Fixture Insert (0.5ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-04-09 03:22:14', '2014-04-09 03:22:14', 236740868, 504123193) +  (0.5ms) COMMIT +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_205618" is a system trigger +: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_player_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER USER +  (0.2ms) BEGIN + BitPlayer::Slide Load (1.1ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 538050605]] + BitPlayer::Slide Load (0.7ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 958091673]] + BitPlayer::Slide Load (0.5ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 236740868]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.3ms) SET CONSTRAINTS bit_player_slide_position DEFERRED + SQL (0.5ms) UPDATE "bit_player_slides" SET "position" = 1 WHERE "bit_player_slides"."id" = 236740868 + SQL (0.4ms) UPDATE "bit_player_slides" SET "position" = 2 WHERE "bit_player_slides"."id" = 538050605 + SQL (0.4ms) UPDATE "bit_player_slides" SET "position" = 3 WHERE "bit_player_slides"."id" = 958091673 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BitPlayer::Slide Load (0.5ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 538050605]] + BitPlayer::Slide Load (0.5ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 958091673]] + BitPlayer::Slide Load (0.5ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 236740868]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") + ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateBitPlayerContentModules (20140305231316) +  (0.2ms) BEGIN +  (6.2ms) CREATE TABLE "bit_player_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "context" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)  + SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305231316"]] +  (0.5ms) COMMIT +Migrating to CreateBitPlayerContentProviders (20140305231317) +  (0.4ms) BEGIN +  (5.1ms) CREATE TABLE "bit_player_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_player_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp)  +  (1.3ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id") +  (3.0ms)  ALTER TABLE bit_player_content_providers + ADD CONSTRAINT fk_content_providers_modules + FOREIGN KEY (bit_player_content_module_id) + REFERENCES bit_player_content_modules(id) + + SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305231317"]] +  (0.9ms) COMMIT +Migrating to CreateBitPlayerParticipantStatuses (20140305233110) +  (0.4ms) BEGIN +  (3.4ms) CREATE TABLE "bit_player_participant_statuses" ("id" serial primary key, "context" character varying(255), "module_position" integer, "provider_position" integer, "content_position" integer, "participant_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id") + SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305233110"]] +  (0.5ms) COMMIT +Migrating to CreateBitPlayerSlideshows (20140305234757) +  (0.3ms) BEGIN +  (3.3ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp) + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234757"]] +  (0.6ms) COMMIT +Migrating to CreateBitPlayerSlides (20140306000537) +  (0.3ms) BEGIN +  (5.0ms) CREATE TABLE "bit_player_slides" ("id" serial primary key, "title" character varying(255), "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_player_slideshow_id" integer NOT NULL, "type" character varying(255), "options" text, "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp) +  (1.2ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id") +  (1.9ms) ALTER TABLE bit_player_slides + ADD CONSTRAINT fk_slides_slideshows + FOREIGN KEY (bit_player_slideshow_id) + REFERENCES bit_player_slideshows(id) + +  (1.5ms)  ALTER TABLE bit_player_slides + ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position) + DEFERRABLE INITIALLY IMMEDIATE + + SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140306000537"]] +  (0.6ms) COMMIT +Migrating to CreateBitPlayerTools (20140407201524) +  (0.4ms) BEGIN +  (3.7ms) CREATE TABLE "bit_player_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer, "is_home" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title") +  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position") + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140407201524"]] +  (0.6ms) COMMIT +Migrating to ChangeModuleContextToTool (20140407201525) +  (0.4ms) BEGIN +  (0.5ms) ALTER TABLE "bit_player_content_modules" ADD COLUMN "bit_player_tool_id" integer + BitPlayer::ContentModule Load (0.5ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" +  (0.5ms) ALTER TABLE "bit_player_content_modules" ALTER "bit_player_tool_id" SET NOT NULL +  (0.7ms) ALTER TABLE "bit_player_content_modules" DROP "context" +  (2.1ms)  ALTER TABLE bit_player_content_modules + ADD CONSTRAINT fk_content_modules_tools + FOREIGN KEY (bit_player_tool_id) + REFERENCES bit_player_tools(id) + + SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140407201525"]] +  (0.5ms) COMMIT + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + BitPlayer::ContentModule Load (1.3ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."bit_player_tool_id" = 1 AND "bit_player_content_modules"."position" = 1 ORDER BY "bit_player_content_modules"."id" ASC LIMIT 1 +  (0.3ms) ROLLBACK +  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_237382" is a system trigger +: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_player_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER USER +  (0.2ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "bit_player_slideshows" + Fixture Insert (1.0ms) INSERT INTO "bit_player_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 504123193) + Fixture Delete (1.0ms) DELETE FROM "bit_player_slides" + Fixture Insert (1.8ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 538050605, 504123193) + Fixture Insert (0.7ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 958091673, 504123193) + Fixture Insert (0.7ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 236740868, 504123193) +  (0.6ms) COMMIT +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_237382" is a system trigger +: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_player_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER USER +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + BitPlayer::Slide Load (2.2ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 538050605]] + BitPlayer::Slide Load (0.8ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 958091673]] + BitPlayer::Slide Load (0.6ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 236740868]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.5ms) SET CONSTRAINTS bit_player_slide_position DEFERRED + SQL (0.5ms) UPDATE "bit_player_slides" SET "position" = 1 WHERE "bit_player_slides"."id" = 236740868 + SQL (0.5ms) UPDATE "bit_player_slides" SET "position" = 2 WHERE "bit_player_slides"."id" = 538050605 + SQL (0.4ms) UPDATE "bit_player_slides" SET "position" = 3 WHERE "bit_player_slides"."id" = 958091673 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BitPlayer::Slide Load (0.4ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 538050605]] + BitPlayer::Slide Load (0.6ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 958091673]] + BitPlayer::Slide Load (0.7ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 236740868]] +  (0.3ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_237382" is a system trigger +: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_player_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_player_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER USER +  (0.2ms) BEGIN + Fixture Delete (0.9ms) DELETE FROM "bit_player_tools" + Fixture Insert (0.9ms) INSERT INTO "bit_player_tools" ("title", "created_at", "updated_at", "id") VALUES ('Home', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 836111569) + Fixture Delete (0.3ms) DELETE FROM "bit_player_content_modules" + Fixture Insert (1.1ms) INSERT INTO "bit_player_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_player_tool_id") VALUES ('Landing', 1, '2014-04-10 17:49:34', '2014-04-10 17:49:34', 437912910, 836111569) + Fixture Insert (0.6ms) INSERT INTO "bit_player_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_player_tool_id") VALUES ('But wait, there''s more', 2, '2014-04-10 17:49:34', '2014-04-10 17:49:34', 511237275, 836111569) + Fixture Delete (0.6ms) DELETE FROM "bit_player_content_providers" + Fixture Insert (1.4ms) INSERT INTO "bit_player_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_player_content_module_id") VALUES (1, 'BitPlayer::ContentProviders::SlideshowProvider', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 555816777, 437912910) + Fixture Insert (0.5ms) INSERT INTO "bit_player_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_player_content_module_id") VALUES (1, 'BitPlayer::ContentProviders::SlideshowProvider', '2014-04-10 17:49:34', '2014-04-10 17:49:34', 46790607, 511237275) +  (0.4ms) COMMIT +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_237382" is a system trigger +: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_player_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_player_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER USER +  (0.2ms) BEGIN + BitPlayer::ContentModule Load (0.9ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]] + BitPlayer::ContentProvider Load (1.0ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 1 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + BitPlayer::ContentModule Load (0.6ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]] + BitPlayer::ContentProvider Load (0.8ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 8 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]] +  (0.2ms) ROLLBACK