  [1m[36mSQL (0.3ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  select sqlite_version(*)
  [1m[36mSQL (1.2ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
  [1m[35mSQL (0.1ms)[0m  PRAGMA index_list("schema_migrations")
  [1m[36mSQL (0.8ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
Migrating to CreateMagazines (20101127162341)
  [1m[36mSQL (0.3ms)[0m  [1mCREATE TABLE "magazines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20101127162341')
Migrating to CreateReaders (20101127162348)
  [1m[36mSQL (0.2ms)[0m  [1mCREATE TABLE "readers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20101127162348')
Migrating to JoinMagazinesReaders (20101127162359)
  [1m[36mSQL (0.2ms)[0m  [1mCREATE TABLE "magazines_readers" ("magazine_id" integer, "reader_id" integer) [0m
  [1m[35mSQL (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20101127162359')
  [1m[36mSQL (0.2ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("magazines")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("magazines_readers")[0m
  [1m[35mSQL (0.1ms)[0m  PRAGMA index_list("readers")
  [1m[36mSQL (0.3ms)[0m  [1mselect sqlite_version(*)[0m
  [1m[35mSQL (0.2ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("magazines")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("magazines_readers")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("readers")
  [1m[36mSQL (0.5ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateMagazines (20101127162341)
Migrating to CreateReaders (20101127162348)
Migrating to JoinMagazinesReaders (20101127162359)
Migrating to ConvertToJoinModel (20101127162741)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.6ms)[0m  [1mDROP TABLE "magazines_readers"[0m
  [1m[35mSQL (0.3ms)[0m  CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "reader_id" integer, "magazine_id" integer, "last_renewal_on" date, "length_in_issues" integer) 
  [1m[36mSQL (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20101127162741')[0m
  [1m[35mSQL (0.2ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("magazines")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("readers")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("subscriptions")[0m
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mAREL (0.3ms)[0m  INSERT INTO "magazines" ("title", "created_at", "updated_at") VALUES ('Ruby Illustrated', '2010-11-27 16:36:00.320598', '2010-11-27 16:36:00.320598')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "readers" ("name", "created_at", "updated_at") VALUES ('Anthony Braxton', '2010-11-27 16:36:37.943870', '2010-11-27 16:36:37.943870')[0m
  [1m[35mAREL (0.3ms)[0m  INSERT INTO "subscriptions" ("reader_id", "magazine_id", "last_renewal_on", "length_in_issues") VALUES (NULL, NULL, '2010-11-27', 6)
  [1m[36mAREL (0.4ms)[0m  [1mUPDATE "subscriptions" SET "magazine_id" = 1 WHERE ("subscriptions"."id" = 1)[0m
  [1m[35mSubscription Load (0.3ms)[0m  SELECT "subscriptions".* FROM "subscriptions" WHERE ("subscriptions".magazine_id = 1)
  [1m[36mAREL (0.4ms)[0m  [1mUPDATE "subscriptions" SET "reader_id" = 1 WHERE ("subscriptions"."id" = 1)[0m
  [1m[35mSubscription Load (0.2ms)[0m  SELECT "subscriptions".* FROM "subscriptions" WHERE ("subscriptions".reader_id = 1)
  [1m[36mReader Load (0.3ms)[0m  [1mSELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1))[0m
  [1m[35mMagazine Load (0.3ms)[0m  SELECT "magazines".* FROM "magazines" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id WHERE (("subscriptions".reader_id = 1))
  [1m[36mSQL (0.4ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mMagazine Load (0.3ms)[0m  SELECT "magazines".* FROM "magazines" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id WHERE (("subscriptions".reader_id = 1))
  [1m[36mMagazine Load (0.4ms)[0m  [1mSELECT "magazines".* FROM "magazines" LIMIT 1[0m
  [1m[35mReader Load (0.3ms)[0m  SELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND ((length_in_issues = 6)))
  [1m[36mMagazine Load (0.4ms)[0m  [1mSELECT "magazines".* FROM "magazines" LIMIT 1[0m
  [1m[35mSQL (0.2ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mReader Load (0.1ms)[0m  [1mSELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))[0m
SQLite3::SQLException: no such column: readers.length_in_issues: SELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))
  [1m[36mMagazine Load (0.4ms)[0m  [1mSELECT "magazines".* FROM "magazines" LIMIT 1[0m
  [1m[35mSQL (0.2ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mReader Load (0.1ms)[0m  [1mSELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))[0m
SQLite3::SQLException: no such column: readers.length_in_issues: SELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))
  [1m[35mMagazine Load (0.5ms)[0m  SELECT "magazines".* FROM "magazines" LIMIT 1
  [1m[36mReader Load (0.2ms)[0m  [1mSELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))[0m
SQLite3::SQLException: no such column: readers.length_in_issues: SELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))
  [1m[36mMagazine Load (0.5ms)[0m  [1mSELECT "magazines".* FROM "magazines" LIMIT 1[0m
  [1m[35mSQL (0.2ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mReader Load (0.1ms)[0m  [1mSELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))[0m
SQLite3::SQLException: no such column: readers.length_in_issues: SELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND (("readers"."length_in_issues" = 6)))
  [1m[36mMagazine Load (0.4ms)[0m  [1mSELECT "magazines".* FROM "magazines" LIMIT 1[0m
  [1m[35mReader Load (0.2ms)[0m  SELECT "readers".* FROM "readers" INNER JOIN "subscriptions" ON "readers".id = "subscriptions".reader_id WHERE (("subscriptions".magazine_id = 1) AND ((length_in_issues = 6)))
