bit_player 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/bit_player/navigator.rb +6 -4
  3. data/db/migrate/20140620182756_convert_slides_slideshows_to_bit_core.rb +33 -0
  4. data/db/migrate/20140620222851_convert_tools_modules_presenters_to_bit_core.rb +46 -0
  5. data/lib/bit_player/version.rb +1 -1
  6. data/lib/bit_player.rb +3 -0
  7. data/spec/dummy/db/migrate/20140620222614_create_bit_core_tools.bit_core.rb +29 -0
  8. data/spec/dummy/db/migrate/20140620222615_create_bit_core_content_modules.bit_core.rb +41 -0
  9. data/spec/dummy/db/migrate/20140620222616_create_bit_core_content_providers.bit_core.rb +43 -0
  10. data/spec/dummy/db/migrate/20140620222617_create_bit_core_slideshows.bit_core.rb +10 -0
  11. data/spec/dummy/db/migrate/20140620222618_create_bit_core_slides.bit_core.rb +44 -0
  12. data/spec/dummy/db/migrate/20140620222619_add_options_to_slides.bit_core.rb +6 -0
  13. data/spec/dummy/db/migrate/20140620222620_add_config_fields_to_providers.bit_core.rb +10 -0
  14. data/spec/dummy/db/schema.rb +35 -36
  15. data/spec/dummy/log/development.log +279 -0
  16. data/spec/dummy/log/test.log +2231 -1644
  17. data/spec/fixtures/bit_player/content_providers.yml +0 -2
  18. data/spec/models/bit_player/navigator_spec.rb +2 -1
  19. metadata +32 -22
  20. data/app/models/bit_player/content_module.rb +0 -36
  21. data/app/models/bit_player/content_provider.rb +0 -63
  22. data/app/models/bit_player/content_providers/null.rb +0 -26
  23. data/app/models/bit_player/content_providers/slideshow_provider.rb +0 -32
  24. data/app/models/bit_player/slide.rb +0 -48
  25. data/app/models/bit_player/slideshow.rb +0 -19
  26. data/app/models/bit_player/tool.rb +0 -23
  27. data/app/models/bit_player/video_slide.rb +0 -6
  28. data/db/migrate/20140402225703_change_module_context_to_tool.rb +0 -30
  29. data/db/migrate/20140619200219_add_config_fields_to_providers.rb +0 -9
  30. data/spec/fixtures/bit_player/slides.yml +0 -17
  31. data/spec/fixtures/bit_player/slideshows.yml +0 -2
  32. data/spec/models/bit_player/content_module_spec.rb +0 -20
  33. data/spec/models/bit_player/content_provider_spec.rb +0 -46
  34. data/spec/models/bit_player/slide_spec.rb +0 -38
@@ -23,3 +23,282 @@
23
23
   (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140305232706')
24
24
   (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140305234327')
25
25
   (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140402224913')
26
+  (10.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
27
+  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ Migrating to CreateBitPlayerContentModules (20140305200438)
30
+  (0.2ms) BEGIN
31
+  (6.4ms) 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) 
32
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305200438"]]
33
+  (0.5ms) COMMIT
34
+ Migrating to CreateBitPlayerContentProviders (20140305201300)
35
+  (0.4ms) BEGIN
36
+  (5.4ms) 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) 
37
+  (1.3ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
38
+  (3.3ms)  ALTER TABLE bit_player_content_providers
39
+ ADD CONSTRAINT fk_content_providers_modules
40
+ FOREIGN KEY (bit_player_content_module_id)
41
+ REFERENCES bit_player_content_modules(id)
42
+ 
43
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305201300"]]
44
+  (0.9ms) COMMIT
45
+ Migrating to CreateBitPlayerParticipantStatuses (20140305232705)
46
+  (0.5ms) BEGIN
47
+  (4.8ms) 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) 
48
+  (1.4ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
49
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232705"]]
50
+  (0.5ms) COMMIT
51
+ Migrating to CreateBitPlayerSlideshows (20140305232706)
52
+  (0.4ms) BEGIN
53
+  (4.4ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
54
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232706"]]
55
+  (0.5ms) COMMIT
56
+ Migrating to CreateBitPlayerSlides (20140305234327)
57
+  (0.4ms) BEGIN
58
+  (7.8ms) 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)
59
+  (1.8ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")
60
+  (3.1ms) ALTER TABLE bit_player_slides
61
+ ADD CONSTRAINT fk_slides_slideshows
62
+ FOREIGN KEY (bit_player_slideshow_id)
63
+ REFERENCES bit_player_slideshows(id)
64
+
65
+  (2.4ms)  ALTER TABLE bit_player_slides
66
+ ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
67
+ DEFERRABLE INITIALLY IMMEDIATE
68
+ 
69
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234327"]]
70
+  (0.7ms) COMMIT
71
+ Migrating to CreateBitPlayerTools (20140402224913)
72
+  (0.5ms) BEGIN
73
+  (4.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) 
74
+  (1.5ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
75
+  (1.4ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")
76
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140402224913"]]
77
+  (0.6ms) COMMIT
78
+ Migrating to ChangeModuleContextToTool (20140402225703)
79
+  (0.5ms) BEGIN
80
+  (0.8ms) ALTER TABLE "bit_player_content_modules" ADD COLUMN "bit_player_tool_id" integer
81
+  (0.4ms) ROLLBACK
82
+  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
83
+  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
84
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
85
+ Migrating to CreateBitPlayerContentModules (20140305200438)
86
+  (0.3ms) BEGIN
87
+  (6.4ms) 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) 
88
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305200438"]]
89
+  (0.5ms) COMMIT
90
+ Migrating to CreateBitPlayerContentProviders (20140305201300)
91
+  (0.3ms) BEGIN
92
+  (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) 
93
+  (1.1ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
94
+  (3.0ms)  ALTER TABLE bit_player_content_providers
95
+ ADD CONSTRAINT fk_content_providers_modules
96
+ FOREIGN KEY (bit_player_content_module_id)
97
+ REFERENCES bit_player_content_modules(id)
98
+ 
99
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305201300"]]
100
+  (0.8ms) COMMIT
101
+ Migrating to CreateBitPlayerParticipantStatuses (20140305232705)
102
+  (0.5ms) BEGIN
103
+  (5.0ms) 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) 
104
+  (1.2ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
105
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232705"]]
106
+  (0.5ms) COMMIT
107
+ Migrating to CreateBitPlayerSlideshows (20140305232706)
108
+  (0.5ms) BEGIN
109
+  (3.9ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
110
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232706"]]
111
+  (0.6ms) COMMIT
112
+ Migrating to CreateBitPlayerSlides (20140305234327)
113
+  (0.3ms) BEGIN
114
+  (5.7ms) 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)
115
+  (1.5ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")
116
+  (2.9ms) ALTER TABLE bit_player_slides
117
+ ADD CONSTRAINT fk_slides_slideshows
118
+ FOREIGN KEY (bit_player_slideshow_id)
119
+ REFERENCES bit_player_slideshows(id)
120
+
121
+  (2.5ms)  ALTER TABLE bit_player_slides
122
+ ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
123
+ DEFERRABLE INITIALLY IMMEDIATE
124
+ 
125
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234327"]]
126
+  (0.6ms) COMMIT
127
+ Migrating to CreateBitPlayerTools (20140402224913)
128
+  (0.4ms) BEGIN
129
+  (4.9ms) 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) 
130
+  (1.7ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
131
+  (2.0ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")
132
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140402224913"]]
133
+  (0.6ms) COMMIT
134
+ Migrating to AddConfigFieldsToProviders (20140619200219)
135
+  (0.5ms) BEGIN
136
+  (0.6ms) ALTER TABLE "bit_player_content_providers" ADD COLUMN "template_path" character varying(255)
137
+  (0.5ms) ALTER TABLE "bit_player_content_providers" ADD COLUMN "data_class_name" character varying(255)
138
+  (0.6ms) ALTER TABLE "bit_player_content_providers" ADD COLUMN "data_attributes" text
139
+  (0.6ms) ALTER TABLE "bit_player_content_providers" ADD COLUMN "show_next_nav" boolean
140
+  (0.4ms) ALTER TABLE "bit_player_content_providers" ADD COLUMN "locals" text
141
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140619200219"]]
142
+  (0.6ms) COMMIT
143
+ Migrating to ConvertSlidesSlideshowsToBitCore (20140620182756)
144
+  (0.3ms) BEGIN
145
+ BitPlayer::Slideshow Load (0.6ms) SELECT "bit_player_slideshows".* FROM "bit_player_slideshows"
146
+ BitPlayer::Slide Load (1.0ms) SELECT "bit_player_slides".* FROM "bit_player_slides"
147
+  (4.5ms) DROP TABLE "bit_player_slides"
148
+  (1.7ms) DROP TABLE "bit_player_slideshows"
149
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620182756"]]
150
+  (2.4ms) COMMIT
151
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
152
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
153
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
154
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
155
+ Migrating to CreateBitPlayerContentModules (20140305200438)
156
+  (0.3ms) BEGIN
157
+  (6.9ms) 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) 
158
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305200438"]]
159
+  (0.5ms) COMMIT
160
+ Migrating to CreateBitPlayerContentProviders (20140305201300)
161
+  (0.3ms) BEGIN
162
+  (5.4ms) 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) 
163
+  (1.3ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
164
+  (3.9ms)  ALTER TABLE bit_player_content_providers
165
+ ADD CONSTRAINT fk_content_providers_modules
166
+ FOREIGN KEY (bit_player_content_module_id)
167
+ REFERENCES bit_player_content_modules(id)
168
+ 
169
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305201300"]]
170
+  (0.9ms) COMMIT
171
+ Migrating to CreateBitPlayerParticipantStatuses (20140305232705)
172
+  (0.5ms) BEGIN
173
+  (4.1ms) 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) 
174
+  (1.4ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
175
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232705"]]
176
+  (0.6ms) COMMIT
177
+ Migrating to CreateBitPlayerSlideshows (20140305232706)
178
+  (0.4ms) BEGIN
179
+  (3.7ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
180
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232706"]]
181
+  (0.5ms) COMMIT
182
+ Migrating to CreateBitPlayerSlides (20140305234327)
183
+  (0.3ms) BEGIN
184
+  (6.2ms) 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)
185
+  (2.3ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")
186
+  (3.1ms) ALTER TABLE bit_player_slides
187
+ ADD CONSTRAINT fk_slides_slideshows
188
+ FOREIGN KEY (bit_player_slideshow_id)
189
+ REFERENCES bit_player_slideshows(id)
190
+
191
+  (2.6ms)  ALTER TABLE bit_player_slides
192
+ ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
193
+ DEFERRABLE INITIALLY IMMEDIATE
194
+ 
195
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234327"]]
196
+  (0.7ms) COMMIT
197
+ Migrating to CreateBitPlayerTools (20140402224913)
198
+  (0.5ms) BEGIN
199
+  (5.5ms) 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) 
200
+  (1.9ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
201
+  (1.4ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")
202
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140402224913"]]
203
+  (0.6ms) COMMIT
204
+ Migrating to ConvertSlidesSlideshowsToBitCore (20140620182756)
205
+  (0.5ms) BEGIN
206
+ BitPlayer::Slideshow Load (0.6ms) SELECT "bit_player_slideshows".* FROM "bit_player_slideshows"
207
+ BitPlayer::Slide Load (0.8ms) SELECT "bit_player_slides".* FROM "bit_player_slides"
208
+  (1.3ms)  ALTER TABLE bit_player_slides
209
+ DROP CONSTRAINT fk_slides_slideshows
210
+ 
211
+  (0.7ms) ALTER TABLE bit_player_slides
212
+ DROP CONSTRAINT IF EXISTS bit_player_slide_position
213
+
214
+  (2.3ms) DROP TABLE "bit_player_slides"
215
+  (1.2ms) DROP TABLE "bit_player_slideshows"
216
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620182756"]]
217
+  (2.1ms) COMMIT
218
+ Migrating to CreateBitCoreTools (20140620222614)
219
+  (0.3ms) BEGIN
220
+  (8.4ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
221
+  (3.0ms)  ALTER TABLE bit_core_tools
222
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
223
+ DEFERRABLE INITIALLY IMMEDIATE
224
+ 
225
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222614"]]
226
+  (0.6ms) COMMIT
227
+ Migrating to CreateBitCoreContentModules (20140620222615)
228
+  (0.5ms) BEGIN
229
+  (4.9ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
230
+  (2.0ms) ALTER TABLE bit_core_content_modules
231
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
232
+ DEFERRABLE INITIALLY IMMEDIATE
233
+
234
+  (2.4ms)  ALTER TABLE bit_core_content_modules
235
+ ADD CONSTRAINT fk_content_modules_tools
236
+ FOREIGN KEY (bit_core_tool_id)
237
+ REFERENCES bit_core_tools(id)
238
+ 
239
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222615"]]
240
+  (0.6ms) COMMIT
241
+ Migrating to CreateBitCoreContentProviders (20140620222616)
242
+  (0.3ms) BEGIN
243
+  (5.0ms) 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) 
244
+  (1.6ms) ALTER TABLE bit_core_content_providers
245
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
246
+ DEFERRABLE INITIALLY IMMEDIATE
247
+
248
+  (2.0ms)  ALTER TABLE bit_core_content_providers
249
+ ADD CONSTRAINT fk_content_providers_modules
250
+ FOREIGN KEY (bit_core_content_module_id)
251
+ REFERENCES bit_core_content_modules(id)
252
+ 
253
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222616"]]
254
+  (0.6ms) COMMIT
255
+ Migrating to CreateBitCoreSlideshows (20140620222617)
256
+  (0.3ms) BEGIN
257
+  (4.3ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
258
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222617"]]
259
+  (0.5ms) COMMIT
260
+ Migrating to CreateBitCoreSlides (20140620222618)
261
+  (0.5ms) BEGIN
262
+  (7.1ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
263
+  (1.8ms) ALTER TABLE bit_core_slides
264
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
265
+ DEFERRABLE INITIALLY IMMEDIATE
266
+
267
+  (2.8ms)  ALTER TABLE bit_core_slides
268
+ ADD CONSTRAINT fk_slideshows_slides
269
+ FOREIGN KEY (bit_core_slideshow_id)
270
+ REFERENCES bit_core_slideshows(id)
271
+ 
272
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222618"]]
273
+  (0.7ms) COMMIT
274
+ Migrating to AddOptionsToSlides (20140620222619)
275
+  (0.8ms) BEGIN
276
+  (1.1ms) ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
277
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222619"]]
278
+  (0.7ms) COMMIT
279
+ Migrating to AddConfigFieldsToProviders (20140620222620)
280
+  (0.4ms) BEGIN
281
+  (0.8ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)
282
+  (0.7ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)
283
+  (0.6ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text
284
+  (0.6ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean
285
+  (0.6ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text
286
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222620"]]
287
+  (0.6ms) COMMIT
288
+ Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
289
+  (0.3ms) BEGIN
290
+ BitPlayer::Tool Load (1.0ms) SELECT "bit_player_tools".* FROM "bit_player_tools"
291
+ BitPlayer::ContentModule Load (0.5ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules"
292
+ BitPlayer::ContentProvider Load (0.5ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers"
293
+  (0.3ms) ALTER TABLE bit_player_content_modules
294
+ DROP CONSTRAINT IF EXISTS fk_content_modules_tools
295
+
296
+  (0.8ms)  ALTER TABLE bit_player_content_providers
297
+ DROP CONSTRAINT IF EXISTS fk_content_providers_modules
298
+ 
299
+  (1.7ms) DROP TABLE "bit_player_tools"
300
+  (1.5ms) DROP TABLE "bit_player_content_modules"
301
+  (1.7ms) DROP TABLE "bit_player_content_providers"
302
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222851"]]
303
+  (2.0ms) COMMIT
304
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"