Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml SQLite3::SQLException: no such column: inkwell_blog_items.owner_type: SELECT "communities".* FROM "communities" WHERE "communities"."id" = 2 AND "inkwell_blog_items"."owner_type" = 'c' LIMIT 1 Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePosts (20121202111750) Migrating to CreateUsers (20121202112556) Migrating to CreateCommunities (20130201155147) Migrating to CreateInkwellTimelineItems (20130208134948) Migrating to AddColumnsToPosts (20130208134949) Migrating to CreateInkwellBlogItems (20130208134950) Migrating to CreateInkwellFavoriteItems (20130208134951) Migrating to AddColumnsToUsers (20130208134952) Migrating to CreateInkwellComments (20130208134953) Migrating to ChangeTablesForCommunities (20130208134954) Migrating to AddCommunityIdsToPost (20130208134955) Migrating to ChangeIsCommentToItemType (20130210231424) Migrating to AddOwnerTypeToLines (20130212130848) Migrating to RefactorCommentTable (20130213101736) Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414) Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512) Migrating to RefactorFollowingsRelation (20130227154519) Migrating to RefactorUserCommunityRelation (20130228115224) Migrating to RefactorInvitesBansMutes (20130312084529) Migrating to CreateCategories (20130324114017)  (0.0ms) select sqlite_version(*)  (0.0ms) begin transaction  (0.5ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (19.3ms) commit transaction Migrating to ChangeTablesForCategories (20130325115600)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "categories" ADD "parent_category_id" integer  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "user_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130325115600')  (5.9ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.4ms) select sqlite_version(*)  (36.3ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_category_id" integer, "child_ids" text DEFAULT '[]', "user_id" integer)   (7.5ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (7.7ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')   (8.5ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (10.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (8.8ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (9.3ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (7.1ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (7.4ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (9.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (6.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (7.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (7.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (7.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325115600')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (7.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (7.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (7.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (7.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (7.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (10.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (7.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (6.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (7.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (30.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (8.5ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (7.3ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (6.1ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (5.9ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (7.7ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (5.5ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (5.8ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (9.2ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (5.4ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.3ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.2ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.2ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.2ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (4.9ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (6.0ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.1ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (6.3ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.2ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.2ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (5.7ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (5.2ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (5.2ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.0ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.2ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.1ms) SELECT * FROM "altered_users"  (0.2ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (5.3ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.5ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.1ms) SELECT "users".* FROM "users"   (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (6.7ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.1ms) SELECT "communities".* FROM "communities"  User Load (0.0ms) SELECT "users".* FROM "users"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (4.7ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.2ms) SELECT "communities".* FROM "communities"   (1.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (5.0ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (4.3ms) commit transaction Migrating to ChangeTablesForCategories (20130325120350)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "parent_category_id" integer  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130325120350')  (5.7ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.2ms) select sqlite_version(*)  (7.9ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_category_id" integer, "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (4.4ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (4.5ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')   (5.2ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (4.6ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (3.7ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (5.4ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (4.0ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (3.5ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (5.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (4.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (4.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325120350')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (115.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (52.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (5.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (7.3ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.2ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (7.2ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (5.9ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (7.6ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.0ms) begin transaction  (0.5ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (6.7ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (4.6ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (5.9ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (4.1ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (4.7ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.0ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.9ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (4.4ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (5.0ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (4.2ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (4.3ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (4.6ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_comments"  (0.4ms) DROP TABLE "inkwell_comments"  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (4.8ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (4.2ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.0ms) SELECT "users".* FROM "users"   (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.0ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (6.1ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.0ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.0ms) SELECT "communities".* FROM "communities"  User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.8ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (199.9ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.2ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (0.8ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.0ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.2ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.0ms) SELECT "communities".* FROM "communities"   (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.2ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (10.6ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.2ms) begin transaction  (0.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (5.1ms) commit transaction Migrating to ChangeTablesForCategories (20130325201904)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "categories" ADD "parents_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130325201904')  (5.7ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (14.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parents_ids" text DEFAULT '[]', "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (3.9ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (5.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')   (3.6ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (5.4ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (3.4ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (4.9ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (3.7ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (4.3ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (6.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (4.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325201904')  (165.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (137.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (6.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (35.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (5.9ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.0ms) begin transaction  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (4.4ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (4.7ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (7.4ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (5.7ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (7.6ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (6.5ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.0ms) begin transaction  (0.5ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (4.5ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (5.1ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.2ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.0ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (5.3ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (5.3ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.3ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.3ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (5.4ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.0ms) begin transaction  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.2ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.2ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (4.0ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.4ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (4.5ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (4.3ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (5.0ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.1ms) SELECT "users".* FROM "users"   (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (6.0ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.1ms) SELECT "communities".* FROM "communities"  User Load (0.1ms) SELECT "users".* FROM "users"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.4ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.0ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (6.1ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (1.0ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.0ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.1ms) SELECT "communities".* FROM "communities"   (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.4ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.0ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (5.3ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (4.2ms) commit transaction Migrating to ChangeTablesForCategories (20130326113840)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "parent_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130326113840')  (6.1ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (11.9ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_ids" text DEFAULT '[]', "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (5.0ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (5.7ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')   (4.0ms) CREATE TABLE "inkwell_blog_items_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (5.5ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (4.2ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (6.0ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (3.9ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (5.3ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (6.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (5.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326113840')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (6.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (21.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (5.1ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (4.3ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (3.3ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (4.4ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (4.7ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (4.8ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (4.9ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (3.5ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (3.9ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (4.5ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (15.4ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.2ms) DROP TABLE "inkwell_favorite_items"  (0.0ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.1ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (4.5ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.2ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.1ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (9.5ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.2ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.3ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (10.3ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.2ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (8.2ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.2ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (1.0ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.2ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.1ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.2ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (5.4ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.2ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.0ms) SELECT "users".* FROM "users"   (0.2ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.0ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (14.3ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.1ms) SELECT "communities".* FROM "communities"  User Load (0.1ms) SELECT "users".* FROM "users"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (7.0ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.1ms) SELECT "communities".* FROM "communities"   (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (4.5ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (5.1ms) commit transaction Migrating to ChangeTablesForCategories (20130327125700)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.3ms) ALTER TABLE "categories" ADD "parent_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130327125700')  (5.9ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (7.8ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_ids" text DEFAULT '[]', "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (4.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (5.6ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (3.6ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')  (5.5ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (4.4ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (6.2ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (4.9ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (4.2ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (5.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (4.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (3.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130327125700')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (295.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (97.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (13.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (16.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (15.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (11.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (18.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (17.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (12.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (35.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (5.5ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (5.0ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (4.5ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (4.8ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (4.3ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (4.8ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (5.6ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (4.1ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (4.0ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.0ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.0ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (1.4ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (6.0ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (4.8ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.2ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.2ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.0ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.1ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.1ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.4ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.9ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (5.4ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.2ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (5.6ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (5.2ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_comments"  (0.4ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (5.1ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (8.8ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (5.7ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.1ms) SELECT "users".* FROM "users"   (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "users"  (0.3ms) DROP TABLE "users"  (0.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.2ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (6.3ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.1ms) SELECT "communities".* FROM "communities"  User Load (0.0ms) SELECT "users".* FROM "users"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.7ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (6.3ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.1ms) SELECT "communities".* FROM "communities"   (0.0ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.0ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.2ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (5.1ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (7.3ms) commit transaction Migrating to ChangeTablesForCategories (20130327130532)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "owner_id" integer, "owner_type" varchar(255), "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.0ms) ALTER TABLE "categories" ADD "parent_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130327130532')  (8.0ms) commit transaction  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.7ms) select sqlite_version(*)  (14.4ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_ids" text DEFAULT '[]', "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (4.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (4.6ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "owner_id" integer, "owner_type" varchar(255), "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (8.6ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')  (10.6ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (3.4ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (4.7ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (7.2ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (6.5ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (10.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (4.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130327130532')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (12.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (275.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (6.8ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (6.4ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (6.9ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (7.5ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.3ms) begin transaction  (0.6ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (7.7ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (5.2ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (7.6ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (5.0ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (5.7ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.2ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (5.0ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.5ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (5.2ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (5.6ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.2ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.1ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.2ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (5.9ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (5.4ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.0ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (4.7ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.1ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.0ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (9.1ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.1ms) SELECT "users".* FROM "users"   (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.2ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (5.5ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.1ms) SELECT "communities".* FROM "communities"  User Load (0.1ms) SELECT "users".* FROM "users"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (4.5ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.1ms) SELECT "communities".* FROM "communities"   (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (4.9ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (4.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (9.4ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (6.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (5.2ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (5.9ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (5.6ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')   (4.9ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (5.4ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (4.7ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (5.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')   (6.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (4.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (7.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePosts (20121202111750) Migrating to CreateUsers (20121202112556) Migrating to CreateCommunities (20130201155147) Migrating to CreateInkwellTimelineItems (20130208134948) Migrating to AddColumnsToPosts (20130208134949) Migrating to CreateInkwellBlogItems (20130208134950) Migrating to CreateInkwellFavoriteItems (20130208134951) Migrating to AddColumnsToUsers (20130208134952) Migrating to CreateInkwellComments (20130208134953) Migrating to ChangeTablesForCommunities (20130208134954) Migrating to AddCommunityIdsToPost (20130208134955) Migrating to ChangeIsCommentToItemType (20130210231424) Migrating to AddOwnerTypeToLines (20130212130848) Migrating to RefactorCommentTable (20130213101736) Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414) Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512) Migrating to RefactorFollowingsRelation (20130227154519) Migrating to RefactorUserCommunityRelation (20130228115224) Migrating to RefactorInvitesBansMutes (20130312084529) Migrating to CreateCategories (20130324114017) Migrating to ChangeTablesForCategories (20130330122919)  (0.0ms) select sqlite_version(*)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "parent_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130330122919')  (18.4ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (11.0ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_ids" text DEFAULT '[]', "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (5.9ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (5.4ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (5.0ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')  (5.6ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (3.7ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (5.8ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (3.6ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (4.5ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (6.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (4.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130330122919')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml  (0.1ms) select sqlite_version(*)  (19.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreatePosts (20121202111750)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')  (6.8ms) commit transaction Migrating to CreateUsers (20121202112556)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')  (4.1ms) commit transaction Migrating to CreateCommunities (20130201155147)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')  (3.9ms) commit transaction Migrating to CreateInkwellTimelineItems (20130208134948)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')  (6.0ms) commit transaction Migrating to AddColumnsToPosts (20130208134949)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')  (3.5ms) commit transaction Migrating to CreateInkwellBlogItems (20130208134950)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')  (4.8ms) commit transaction Migrating to CreateInkwellFavoriteItems (20130208134951)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')  (7.5ms) commit transaction Migrating to AddColumnsToUsers (20130208134952)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')  (3.4ms) commit transaction Migrating to CreateInkwellComments (20130208134953)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')  (4.2ms) commit transaction Migrating to ChangeTablesForCommunities (20130208134954)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.4ms) DROP TABLE "inkwell_comments"  (0.3ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.3ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.1ms) DROP TABLE "inkwell_comments"  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer  (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')  (4.9ms) commit transaction Migrating to AddCommunityIdsToPost (20130208134955)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')  (4.8ms) commit transaction Migrating to ChangeIsCommentToItemType (20130210231424)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255) SQL (0.3ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_blog_items"  (0.2ms) DROP TABLE "inkwell_blog_items"  (2.8ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.2ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't' SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (2.2ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.1ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.2ms) DROP TABLE "altered_inkwell_favorite_items"  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't' SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_timeline_items"  (0.1ms) DROP TABLE "inkwell_timeline_items"  (0.7ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))   (0.1ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (3.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')  (6.0ms) commit transaction Migrating to AddOwnerTypeToLines (20130212130848)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't' SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))  (0.1ms) SELECT * FROM "inkwell_blog_items"  (0.1ms) DROP TABLE "inkwell_blog_items"  (0.1ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_blog_items"  (0.1ms) DROP TABLE "altered_inkwell_blog_items"  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255) SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_favorite_items"  (0.1ms) DROP TABLE "inkwell_favorite_items"  (0.1ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"  (0.2ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255) SQL (0.5ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))  (0.0ms) SELECT * FROM "inkwell_timeline_items"  (0.2ms) DROP TABLE "inkwell_timeline_items"  (0.1ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')  (5.3ms) commit transaction Migrating to RefactorCommentTable (20130213101736)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "inkwell_comments"  (0.2ms) DROP TABLE "inkwell_comments"  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.0ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255) SQL (0.1ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')  (4.7ms) commit transaction Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)  (0.0ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))  (0.2ms) SELECT * FROM "inkwell_comments"  (0.3ms) DROP TABLE "inkwell_comments"  (0.2ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (0.9ms) SELECT * FROM "altered_inkwell_comments"  (0.1ms) DROP TABLE "altered_inkwell_comments"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')  (9.8ms) commit transaction Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.0ms) SELECT * FROM "users"  (0.6ms) DROP TABLE "users"  (1.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "admin_of" text DEFAULT '[]')   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]')  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')  (5.5ms) commit transaction Migrating to RefactorFollowingsRelation (20130227154519)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0 User Load (0.1ms) SELECT "users".* FROM "users"   (0.3ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "users"  (0.2ms) DROP TABLE "users"  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')  (12.5ms) commit transaction Migrating to RefactorUserCommunityRelation (20130228115224)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0  (0.0ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0 Community Load (0.1ms) SELECT "communities".* FROM "communities"  User Load (0.0ms) SELECT "users".* FROM "users"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.3ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.3ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "writers_ids" text DEFAULT '[]', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "communities"  (0.2ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "admins_info" text DEFAULT '[]', "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (2.7ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "muted_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "users"  (0.1ms) DROP TABLE "users"  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "altered_users"  (0.1ms) DROP TABLE "altered_users"  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')  (212.0ms) commit transaction Migrating to RefactorInvitesBansMutes (20130312084529)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0  (0.3ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 0, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.2ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.4ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (1.0ms) SELECT * FROM "altered_communities"  (0.2ms) DROP TABLE "altered_communities"  (0.2ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 0, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.2ms) SELECT * FROM "communities"  (0.3ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.0ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.0ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f' Community Load (0.1ms) SELECT "communities".* FROM "communities"   (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "banned_ids" text DEFAULT '[]', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) CREATE TEMPORARY TABLE "altered_communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "invitations_uids" text DEFAULT '[]', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (0.1ms) SELECT * FROM "communities"  (0.1ms) DROP TABLE "communities"  (0.1ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)   (0.1ms) SELECT * FROM "altered_communities"  (0.1ms) DROP TABLE "altered_communities"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')  (5.7ms) commit transaction Migrating to CreateCategories (20130324114017)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130324114017')  (4.3ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreatePosts (20121202111750) Migrating to CreateUsers (20121202112556) Migrating to CreateCommunities (20130201155147) Migrating to CreateInkwellTimelineItems (20130208134948) Migrating to AddColumnsToPosts (20130208134949) Migrating to CreateInkwellBlogItems (20130208134950) Migrating to CreateInkwellFavoriteItems (20130208134951) Migrating to AddColumnsToUsers (20130208134952) Migrating to CreateInkwellComments (20130208134953) Migrating to ChangeTablesForCommunities (20130208134954) Migrating to AddCommunityIdsToPost (20130208134955) Migrating to ChangeIsCommentToItemType (20130210231424) Migrating to AddOwnerTypeToLines (20130212130848) Migrating to RefactorCommentTable (20130213101736) Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414) Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512) Migrating to RefactorFollowingsRelation (20130227154519) Migrating to RefactorUserCommunityRelation (20130228115224) Migrating to RefactorInvitesBansMutes (20130312084529) Migrating to CreateCategories (20130324114017) Migrating to ChangeTablesForCategories (20130330184136)  (0.0ms) select sqlite_version(*)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "item_id" integer, "item_type" varchar(255), "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "category_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "parent_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "child_ids" text DEFAULT '[]'  (0.1ms) ALTER TABLE "categories" ADD "owner_id" integer  (0.1ms) ALTER TABLE "categories" ADD "owner_type" varchar(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130330184136')  (45.1ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (20.2ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_ids" text DEFAULT '[]', "child_ids" text DEFAULT '[]', "owner_id" integer, "owner_type" varchar(255))   (4.2ms) CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "default_user_access" varchar(255) DEFAULT 'w', "public" boolean DEFAULT 't', "user_count" integer DEFAULT 1, "writer_count" integer DEFAULT 1, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)  (5.0ms) CREATE TABLE "inkwell_blog_item_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blog_item_id" integer, "category_id" integer, "item_id" integer, "item_type" varchar(255), "blog_item_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (3.8ms) CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255), "category_ids" text DEFAULT '[]')  (5.0ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))   (3.9ms) CREATE TABLE "inkwell_community_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "community_id" integer, "user_access" varchar(255) DEFAULT 'r', "is_admin" boolean DEFAULT 'f', "admin_level" integer, "muted" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "active" boolean DEFAULT 'f', "banned" boolean DEFAULT 'f', "asked_invitation" boolean DEFAULT 'f')  (4.9ms) CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (3.9ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (3.9ms) CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))   (6.1ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')  (3.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0, "community_count" integer DEFAULT 0)   (4.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130330184136')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130324114017')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml