(0.1ms) select sqlite_version(*)  (129.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.1ms) PRAGMA index_list("schema_migrations")  (114.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.6ms) CREATE TABLE "page_parts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar(10) NOT NULL, "content" text, "partable_id" integer NOT NULL, "partable_type" varchar(50) NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) PRAGMA index_list("page_parts")  (0.3ms) CREATE INDEX "index_page_parts_on_key" ON "page_parts" ("key")  (0.1ms) PRAGMA index_list("page_parts")  (0.1ms) PRAGMA index_info('index_page_parts_on_key')  (0.3ms) CREATE INDEX "index_page_parts_on_partable_type_and_partable_id" ON "page_parts" ("partable_type", "partable_id")  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111226144515')  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (9.0ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:17:06 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:17:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.7ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:17:06 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:17:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:18:11 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:18:11 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:18:17 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:18:17 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.0ms) select sqlite_version(*)  (0.4ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111226131910')  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.2ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:21:29 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:21:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:21:29 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", 1], ["updated_at", Mon, 26 Dec 2011 13:21:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 1 AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) WARNING: Can't mass-assign protected attributes: partable_type, partable_id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:49:01 UTC +00:00], ["key", "main"], ["partable_id", nil], ["partable_type", nil], ["updated_at", Mon, 26 Dec 2011 13:49:01 UTC +00:00]] SQLite3::ConstraintException: constraint failed: INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1 WARNING: Can't mass-assign protected attributes: partable_type, partable_id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:49:01 UTC +00:00], ["key", "test"], ["partable_id", nil], ["partable_type", nil], ["updated_at", Mon, 26 Dec 2011 13:49:01 UTC +00:00]] SQLite3::ConstraintException: constraint failed: INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) WARNING: Can't mass-assign protected attributes: partable_type, partable_id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:50:30 UTC +00:00], ["key", "main"], ["partable_id", nil], ["partable_type", nil], ["updated_at", Mon, 26 Dec 2011 13:50:30 UTC +00:00]] SQLite3::ConstraintException: constraint failed: INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1 WARNING: Can't mass-assign protected attributes: partable_type, partable_id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" IS NULL AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:50:30 UTC +00:00], ["key", "test"], ["partable_id", nil], ["partable_type", nil], ["updated_at", Mon, 26 Dec 2011 13:50:30 UTC +00:00]] SQLite3::ConstraintException: constraint failed: INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:55:15 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 13:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:55:15 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 13:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:55:36 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 13:55:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:55:36 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 13:55:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910)  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:58:56 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 13:58:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 13:58:56 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 13:58:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.3ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:03:24 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:03:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:03:24 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:03:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:04:09 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:04:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:04:09 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:04:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:05:05 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:05:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:05:05 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:05:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:06:20 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:06:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:06:20 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:06:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.1ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:06:47 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:06:47 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.1ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:07:48 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:07:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:07:48 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:07:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.3ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.4ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:08:30 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:08:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:08:30 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:08:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.1ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.5ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:01 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:01 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (1.4ms) INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00], ["title", "Test category"], ["updated_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00]] SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "Sidebar content"], ["created_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00], ["key", "sidebar"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00]] SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (1.2ms) INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00], ["title", "Test category"], ["updated_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "Sidebar content"], ["created_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00], ["key", "sidebar"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00]] SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.1ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'main' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'main' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (1.1ms) INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00], ["title", "Test category"], ["updated_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "Sidebar content"], ["created_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00], ["key", "sidebar"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00]] SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00], ["key", "main"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:10:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (1.5ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:19:37 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:19:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:19:37 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:19:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePageParts (20111226144515)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateCategories (20111226131910) PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'content' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'content' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (1.2ms) INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["title", "Test category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "Sidebar"], ["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["key", "sidebar"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]] SQL (0.1ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "Main"], ["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["key", "content"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] PagePart Load (0.1ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'sidebar' LIMIT 1 PagePart Load (0.1ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."partable_id" IS NULL AND "page_parts"."partable_type" = 'Category' AND "page_parts"."key" = 'content' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'sidebar' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'content' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["title", "Test category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "Sidebar content"], ["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["key", "sidebar"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["key", "content"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "page_parts"   (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'somekey' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["key", "somekey"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = '' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "page_parts" ("content", "created_at", "key", "partable_id", "partable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", nil], ["created_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00], ["key", "test"], ["partable_id", 1], ["partable_type", "Category"], ["updated_at", Mon, 26 Dec 2011 14:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "page_parts" WHERE ("page_parts"."key" = 'test' AND "page_parts"."partable_type" = 'Category' AND "page_parts"."partable_id" = 1) LIMIT 1