(1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateFoggedResources (20141103143408)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE INDEX "index_resources_on_token" ON "resources" ("token") SQLite3::SQLException: no such table: main.resources: CREATE INDEX "index_resources_on_token" ON "resources" ("token")  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateFoggedResources (20141103143408)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_resources_on_token" ON "resources" ("token") SQLite3::SQLException: no such table: main.resources: CREATE INDEX "index_resources_on_token" ON "resources" ("token")  (4.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateFoggedResources (20141103143408)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_fogged_resources_on_token" ON "fogged_resources" ("token") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141103143408"]]  (1.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateDelayedJobs (20141104083706)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104083706"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateImages (20141104135257)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104135257"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateFoggedResources (20141104144134)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)  SQLite3::SQLException: table "fogged_resources" already exists: CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovies (20141104152227)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "movies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152227"]]  (0.7ms) commit transaction Migrating to CreateMovieResources (20141104152345)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "movie_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "fogged_resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movie_resources_on_movie_id" ON "movie_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movie_resources_on_fogged_resource_id" ON "movie_resources" ("fogged_resource_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_fogged_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_fogged_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_movie_id' AND type='index'