zencodable 0.1.3 → 0.1.4
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.
- data/lib/generators/zencodable/templates/zencodable_add_tracking_columns_and_tables.rb +1 -0
- data/lib/zencodable/version.rb +1 -1
- data/test/debug.log +118 -0
- data/test/dummy/tmp/db/migrate/{20111205194442_zencodable_add_tracking_columns_and_tables.rb → 20111205205154_zencodable_add_tracking_columns_and_tables.rb} +1 -0
- data/test/zencodable_generators_test.rb +1 -0
- metadata +3 -3
@@ -1,6 +1,7 @@
|
|
1
1
|
class ZencodableAddTrackingColumnsAndTables < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
add_column :<%= name.tableize %>, :origin_url, :string
|
4
|
+
add_column :<%= name.tableize %>, :zencoder_job_id, :string
|
4
5
|
add_column :<%= name.tableize %>, :zencoder_job_status, :string
|
5
6
|
add_column :<%= name.tableize %>, :zencoder_job_created, :datetime
|
6
7
|
add_column :<%= name.tableize %>, :zencoder_job_finished, :datetime
|
data/lib/zencodable/version.rb
CHANGED
data/test/debug.log
CHANGED
@@ -1373,3 +1373,121 @@ Unfinished job found. Updating details.
|
|
1373
1373
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1374
1374
|
[1m[36m (0.1ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 19:44:42.016219' WHERE "videos"."id" = 1[0m
|
1375
1375
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1376
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35mSQL (17.9ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1378
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1380
|
+
Origin URL changed. Creating new ZenCoder job.
|
1381
|
+
ZenCoder job created, ID = 123
|
1382
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-05 20:51:39.820707', "updated_at" = '2011-12-05 20:51:39.820963' WHERE "videos"."id" = 1[0m
|
1383
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1384
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
|
1386
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1388
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1389
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1390
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1391
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Mon, 05 Dec 2011 20:51:39 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
|
1392
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1393
|
+
[1m[35mVideoFile Load (0.2ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
|
1394
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1395
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
|
1396
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1397
|
+
Unfinished job found. Updating details.
|
1398
|
+
[1m[35mVideoFile Load (0.2ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1399
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1400
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1401
|
+
[1m[36mVideoFileThumbnail Load (1.4ms)[0m [1mSELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1[0m
|
1402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1405
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-05 20:51:40.027617' WHERE "videos"."id" = 1[0m
|
1406
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1408
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1409
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1410
|
+
Unfinished job found. Updating details.
|
1411
|
+
[1m[35mVideoFile Load (0.1ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1412
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1413
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
|
1414
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1415
|
+
[1m[35mVideoFileThumbnail Load (0.1ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1416
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1417
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1418
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1419
|
+
[1m[35m (0.1ms)[0m UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 20:51:40.041105' WHERE "videos"."id" = 1
|
1420
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1421
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1422
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1423
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1424
|
+
Unfinished job found. Updating details.
|
1425
|
+
[1m[36mVideoFile Load (0.1ms)[0m [1mSELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1[0m
|
1426
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1427
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1428
|
+
[1m[35mVideoFileThumbnail Load (0.2ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1429
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1430
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Mon, 05 Dec 2011 20:51:40 UTC +00:00], ["video_id", 1]]
|
1431
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1432
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1433
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 20:51:40.097589' WHERE "videos"."id" = 1[0m
|
1434
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1436
|
+
[1m[35mSQL (19.3ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1437
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1438
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1439
|
+
Origin URL changed. Creating new ZenCoder job.
|
1440
|
+
ZenCoder job created, ID = 123
|
1441
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-05 20:51:53.671322', "updated_at" = '2011-12-05 20:51:53.671547' WHERE "videos"."id" = 1[0m
|
1442
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1443
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1444
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
|
1445
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1446
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1447
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1448
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1450
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
|
1451
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1452
|
+
[1m[35mVideoFile Load (0.2ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
|
1453
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1454
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
|
1455
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1456
|
+
Unfinished job found. Updating details.
|
1457
|
+
[1m[35mVideoFile Load (0.1ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1459
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1460
|
+
[1m[36mVideoFileThumbnail Load (0.1ms)[0m [1mSELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1[0m
|
1461
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1462
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1463
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1464
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-05 20:51:53.835969' WHERE "videos"."id" = 1[0m
|
1465
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1466
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1467
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1468
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1469
|
+
Unfinished job found. Updating details.
|
1470
|
+
[1m[35mVideoFile Load (0.1ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1471
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1472
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
|
1473
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1474
|
+
[1m[35mVideoFileThumbnail Load (0.1ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1476
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1477
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1478
|
+
[1m[35m (0.2ms)[0m UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 20:51:53.847671' WHERE "videos"."id" = 1
|
1479
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1480
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1481
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1482
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1483
|
+
Unfinished job found. Updating details.
|
1484
|
+
[1m[36mVideoFile Load (0.2ms)[0m [1mSELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1[0m
|
1485
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1487
|
+
[1m[35mVideoFileThumbnail Load (0.1ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1488
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1489
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Mon, 05 Dec 2011 20:51:53 UTC +00:00], ["video_id", 1]]
|
1490
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1492
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 20:51:53.908545' WHERE "videos"."id" = 1[0m
|
1493
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class ZencodableAddTrackingColumnsAndTables < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
add_column :kitteh_movies, :origin_url, :string
|
4
|
+
add_column :kitteh_movies, :zencoder_job_id, :string
|
4
5
|
add_column :kitteh_movies, :zencoder_job_status, :string
|
5
6
|
add_column :kitteh_movies, :zencoder_job_created, :datetime
|
6
7
|
add_column :kitteh_movies, :zencoder_job_finished, :datetime
|
@@ -18,6 +18,7 @@ class ZencodableGeneratorTest < Rails::Generators::TestCase
|
|
18
18
|
assert_match /t\.integer\s+\"kitteh_movie_id\"/, migration
|
19
19
|
|
20
20
|
assert_match /add_column :kitteh_movies, :origin_url, :string/, migration
|
21
|
+
assert_match /add_column :kitteh_movies, :zencoder_job_id, :string/, migration
|
21
22
|
assert_match /add_column :kitteh_movies, :zencoder_job_status, :string/, migration
|
22
23
|
assert_match /add_column :kitteh_movies, :zencoder_job_created, :datetime/, migration
|
23
24
|
assert_match /add_column :kitteh_movies, :zencoder_job_finished, :datetime/, migration
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: zencodable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sam Beam
|
@@ -148,7 +148,7 @@ files:
|
|
148
148
|
- test/dummy/public/favicon.ico
|
149
149
|
- test/dummy/Rakefile
|
150
150
|
- test/dummy/script/rails
|
151
|
-
- test/dummy/tmp/db/migrate/
|
151
|
+
- test/dummy/tmp/db/migrate/20111205205154_zencodable_add_tracking_columns_and_tables.rb
|
152
152
|
- test/factories.rb
|
153
153
|
- test/test_helper.rb
|
154
154
|
- test/zencodable_generators_test.rb
|
@@ -223,7 +223,7 @@ test_files:
|
|
223
223
|
- test/dummy/public/favicon.ico
|
224
224
|
- test/dummy/Rakefile
|
225
225
|
- test/dummy/script/rails
|
226
|
-
- test/dummy/tmp/db/migrate/
|
226
|
+
- test/dummy/tmp/db/migrate/20111205205154_zencodable_add_tracking_columns_and_tables.rb
|
227
227
|
- test/factories.rb
|
228
228
|
- test/test_helper.rb
|
229
229
|
- test/zencodable_generators_test.rb
|