inkwell 1.0.5 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/app/models/inkwell/blog_item.rb +1 -1
  2. data/app/models/inkwell/comment.rb +22 -24
  3. data/app/models/inkwell/favorite_item.rb +1 -2
  4. data/app/models/inkwell/timeline_item.rb +1 -2
  5. data/db/migrate/20130202130030_change_is_comment_to_item_type.rb +18 -0
  6. data/db/migrate/20130202130040_add_owner_type_to_lines.rb +16 -0
  7. data/db/migrate/20130212130858_refactor_comment_table.rb +7 -0
  8. data/db/migrate/20130212130868_rename_parent_id_to_parent_comment_id_in_comment_table.rb +5 -0
  9. data/lib/acts_as_inkwell_community/base.rb +16 -16
  10. data/lib/acts_as_inkwell_post/base.rb +15 -14
  11. data/lib/acts_as_inkwell_user/base.rb +41 -34
  12. data/lib/common/base.rb +28 -4
  13. data/lib/inkwell/version.rb +1 -1
  14. data/test/dummy/db/development.sqlite3 +0 -0
  15. data/test/dummy/db/migrate/20130210231424_change_is_comment_to_item_type.inkwell.rb +19 -0
  16. data/test/dummy/db/migrate/20130212130848_add_owner_type_to_lines.inkwell.rb +17 -0
  17. data/test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb +8 -0
  18. data/test/dummy/db/migrate/20130213121414_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb +6 -0
  19. data/test/dummy/db/schema.rb +14 -11
  20. data/test/dummy/db/test.sqlite3 +0 -0
  21. data/test/dummy/log/development.log +699 -0
  22. data/test/dummy/log/test.log +0 -0
  23. data/test/dummy/spec/functional/blogline_spec.rb +7 -7
  24. data/test/dummy/spec/functional/comments_spec.rb +129 -132
  25. data/test/dummy/spec/functional/community_spec.rb +119 -120
  26. data/test/dummy/spec/functional/favorite_spec.rb +27 -27
  27. data/test/dummy/spec/functional/following_spec.rb +26 -26
  28. data/test/dummy/spec/functional/reblog_spec.rb +32 -32
  29. data/test/dummy/spec/functional/timeline_spec.rb +1 -1
  30. data/test/dummy_without_community/db/development.sqlite3 +0 -0
  31. data/test/dummy_without_community/db/migrate/20130213115833_change_is_comment_to_item_type.inkwell.rb +19 -0
  32. data/test/dummy_without_community/db/migrate/20130213115834_add_owner_type_to_lines.inkwell.rb +17 -0
  33. data/test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb +8 -0
  34. data/test/dummy_without_community/db/schema.rb +13 -10
  35. data/test/dummy_without_community/db/test.sqlite3 +0 -0
  36. data/test/dummy_without_community/log/development.log +111 -0
  37. data/test/dummy_without_community/log/test.log +11393 -0
  38. data/test/dummy_without_community/spec/functional/blogline_spec.rb +7 -7
  39. data/test/dummy_without_community/spec/functional/comments_spec.rb +128 -131
  40. data/test/dummy_without_community/spec/functional/favorite_spec.rb +27 -27
  41. data/test/dummy_without_community/spec/functional/following_spec.rb +26 -26
  42. data/test/dummy_without_community/spec/functional/reblog_spec.rb +32 -32
  43. data/test/dummy_without_community/spec/functional/timeline_spec.rb +1 -1
  44. metadata +32 -14
data/lib/common/base.rb CHANGED
@@ -1,16 +1,28 @@
1
1
  module Inkwell
2
2
  module Common
3
- def is_comment(obj)
3
+ def get_item_type(obj)
4
4
  post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
5
5
  case obj
6
6
  when ::Inkwell::Comment
7
- is_comment = true
7
+ result = ::Inkwell::Constants::ItemTypes::COMMENT
8
8
  when post_class
9
- is_comment = false
9
+ result = ::Inkwell::Constants::ItemTypes::POST
10
10
  else
11
11
  raise "obj should be Comment or #{post_class.class}"
12
12
  end
13
- is_comment
13
+ result
14
+ end
15
+
16
+ def get_class_for_item_type(type)
17
+ post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
18
+ case type
19
+ when ::Inkwell::Constants::ItemTypes::COMMENT
20
+ result = ::Inkwell::Comment
21
+ when ::Inkwell::Constants::ItemTypes::POST
22
+ result = post_class
23
+ else raise "obj type #{type} is unknown"
24
+ end
25
+ result
14
26
  end
15
27
 
16
28
  def check_user(obj)
@@ -23,4 +35,16 @@ module Inkwell
23
35
  raise "post should be a #{user_class.to_s}" unless obj.is_a? post_class
24
36
  end
25
37
  end
38
+
39
+ module Constants
40
+ module ItemTypes
41
+ POST = 'p'
42
+ COMMENT = 'c'
43
+ end
44
+
45
+ module OwnerTypes
46
+ USER = 'u'
47
+ COMMUNITY = 'c'
48
+ end
49
+ end
26
50
  end
@@ -1,3 +1,3 @@
1
1
  module Inkwell
2
- VERSION = "1.0.5"
2
+ VERSION = "1.1.1"
3
3
  end
Binary file
@@ -0,0 +1,19 @@
1
+ # This migration comes from inkwell (originally 20130202130030)
2
+ class ChangeIsCommentToItemType < ActiveRecord::Migration
3
+ def change
4
+ add_column :inkwell_blog_items, :item_type, :string
5
+ ::Inkwell::BlogItem.where(:is_comment => true).update_all(:item_type => 'c')
6
+ ::Inkwell::BlogItem.where(:is_comment => false).update_all(:item_type => 'p')
7
+ remove_column :inkwell_blog_items, :is_comment
8
+
9
+ add_column :inkwell_favorite_items, :item_type, :string
10
+ ::Inkwell::FavoriteItem.where(:is_comment => true).update_all(:item_type => 'c')
11
+ ::Inkwell::FavoriteItem.where(:is_comment => false).update_all(:item_type => 'p')
12
+ remove_column :inkwell_favorite_items, :is_comment
13
+
14
+ add_column :inkwell_timeline_items, :item_type, :string
15
+ ::Inkwell::TimelineItem.where(:is_comment => true).update_all(:item_type => 'c')
16
+ ::Inkwell::TimelineItem.where(:is_comment => false).update_all(:item_type => 'p')
17
+ remove_column :inkwell_timeline_items, :is_comment
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ # This migration comes from inkwell (originally 20130202130040)
2
+ class AddOwnerTypeToLines < ActiveRecord::Migration
3
+ def change
4
+ add_column :inkwell_blog_items, :owner_type, :string
5
+ ::Inkwell::BlogItem.where(:is_owner_user => true).update_all(:owner_type => 'u')
6
+ ::Inkwell::BlogItem.where(:is_owner_user => false).update_all(:owner_type => 'c')
7
+ remove_column :inkwell_blog_items, :is_owner_user
8
+
9
+ add_column :inkwell_favorite_items, :owner_type, :string
10
+ ::Inkwell::FavoriteItem.update_all(:owner_type => 'u')
11
+ rename_column :inkwell_favorite_items, "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id", :owner_id
12
+
13
+ add_column :inkwell_timeline_items, :owner_type, :string
14
+ ::Inkwell::TimelineItem.update_all(:owner_type => 'u')
15
+ rename_column :inkwell_timeline_items, "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id", :owner_id
16
+ end
17
+ end
@@ -0,0 +1,8 @@
1
+ # This migration comes from inkwell (originally 20130212130858)
2
+ class RefactorCommentTable < ActiveRecord::Migration
3
+ def change
4
+ rename_column :inkwell_comments, "#{::Inkwell::Engine::config.post_table.to_s.singularize}_id", :topmost_obj_id
5
+ add_column :inkwell_comments, :topmost_obj_type, :string
6
+ ::Inkwell::Comment.update_all :topmost_obj_type => 'p'
7
+ end
8
+ end
@@ -0,0 +1,6 @@
1
+ # This migration comes from inkwell (originally 20130212130868)
2
+ class RenameParentIdToParentCommentIdInCommentTable < ActiveRecord::Migration
3
+ def change
4
+ rename_column :inkwell_comments, :parent_id, :parent_comment_id
5
+ end
6
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130208134955) do
14
+ ActiveRecord::Schema.define(:version => 20130213121414) do
15
15
 
16
16
  create_table "communities", :force => true do |t|
17
17
  t.string "name"
@@ -25,42 +25,45 @@ ActiveRecord::Schema.define(:version => 20130208134955) do
25
25
  create_table "inkwell_blog_items", :force => true do |t|
26
26
  t.integer "item_id"
27
27
  t.boolean "is_reblog"
28
- t.boolean "is_comment"
29
- t.datetime "created_at", :null => false
30
- t.datetime "updated_at", :null => false
28
+ t.datetime "created_at", :null => false
29
+ t.datetime "updated_at", :null => false
31
30
  t.integer "owner_id"
32
- t.boolean "is_owner_user"
31
+ t.string "item_type"
32
+ t.string "owner_type"
33
33
  end
34
34
 
35
35
  create_table "inkwell_comments", :force => true do |t|
36
36
  t.integer "user_id"
37
37
  t.text "body"
38
- t.integer "parent_id"
39
- t.integer "post_id"
38
+ t.integer "parent_comment_id"
39
+ t.integer "topmost_obj_id"
40
40
  t.text "upper_comments_tree"
41
41
  t.text "users_ids_who_favorite_it", :default => "[]"
42
42
  t.text "users_ids_who_comment_it", :default => "[]"
43
43
  t.text "users_ids_who_reblog_it", :default => "[]"
44
44
  t.datetime "created_at", :null => false
45
45
  t.datetime "updated_at", :null => false
46
+ t.string "topmost_obj_type"
46
47
  end
47
48
 
48
49
  create_table "inkwell_favorite_items", :force => true do |t|
49
50
  t.integer "item_id"
50
- t.integer "user_id"
51
- t.boolean "is_comment"
51
+ t.integer "owner_id"
52
52
  t.datetime "created_at", :null => false
53
53
  t.datetime "updated_at", :null => false
54
+ t.string "item_type"
55
+ t.string "owner_type"
54
56
  end
55
57
 
56
58
  create_table "inkwell_timeline_items", :force => true do |t|
57
59
  t.integer "item_id"
58
- t.integer "user_id"
60
+ t.integer "owner_id"
59
61
  t.text "from_source", :default => "[]"
60
62
  t.boolean "has_many_sources", :default => false
61
- t.boolean "is_comment"
62
63
  t.datetime "created_at", :null => false
63
64
  t.datetime "updated_at", :null => false
65
+ t.string "item_type"
66
+ t.string "owner_type"
64
67
  end
65
68
 
66
69
  create_table "posts", :force => true do |t|
Binary file
@@ -2200,3 +2200,702 @@ Connecting to database specified by database.yml
2200
2200
   (6.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2201
2201
   (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2202
2202
   (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
2203
+ Connecting to database specified by database.yml
2204
+ Connecting to database specified by database.yml
2205
+ Connecting to database specified by database.yml
2206
+ Connecting to database specified by database.yml
2207
+ Connecting to database specified by database.yml
2208
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2209
+ Migrating to CreatePosts (20121202111750)
2210
+ Migrating to CreateUsers (20121202112556)
2211
+ Migrating to CreateCommunities (20130201155147)
2212
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2213
+ Migrating to AddColumnsToPosts (20130208134949)
2214
+ Migrating to CreateInkwellBlogItems (20130208134950)
2215
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2216
+ Migrating to AddColumnsToUsers (20130208134952)
2217
+ Migrating to CreateInkwellComments (20130208134953)
2218
+ Migrating to ChangeTablesForCommunities (20130208134954)
2219
+ Migrating to AddCommunityIdsToPost (20130208134955)
2220
+ Migrating to ChangeIsCommentToItemType (20130210220752)
2221
+  (0.0ms) select sqlite_version(*)
2222
+  (0.0ms) begin transaction
2223
+  (0.5ms) rollback transaction
2224
+ Connecting to database specified by database.yml
2225
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2226
+ Migrating to CreatePosts (20121202111750)
2227
+ Migrating to CreateUsers (20121202112556)
2228
+ Migrating to CreateCommunities (20130201155147)
2229
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2230
+ Migrating to AddColumnsToPosts (20130208134949)
2231
+ Migrating to CreateInkwellBlogItems (20130208134950)
2232
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2233
+ Migrating to AddColumnsToUsers (20130208134952)
2234
+ Migrating to CreateInkwellComments (20130208134953)
2235
+ Migrating to ChangeTablesForCommunities (20130208134954)
2236
+ Migrating to AddCommunityIdsToPost (20130208134955)
2237
+ Migrating to ChangeIsCommentToItemType (20130210220752)
2238
+  (0.0ms) select sqlite_version(*)
2239
+  (0.0ms) begin transaction
2240
+  (0.0ms) rollback transaction
2241
+ Connecting to database specified by database.yml
2242
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2243
+ Migrating to CreatePosts (20121202111750)
2244
+ Migrating to CreateUsers (20121202112556)
2245
+ Migrating to CreateCommunities (20130201155147)
2246
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2247
+ Migrating to AddColumnsToPosts (20130208134949)
2248
+ Migrating to CreateInkwellBlogItems (20130208134950)
2249
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2250
+ Migrating to AddColumnsToUsers (20130208134952)
2251
+ Migrating to CreateInkwellComments (20130208134953)
2252
+ Migrating to ChangeTablesForCommunities (20130208134954)
2253
+ Migrating to AddCommunityIdsToPost (20130208134955)
2254
+ Migrating to ChangeIsCommentToItemType (20130210221020)
2255
+  (0.0ms) select sqlite_version(*)
2256
+  (0.0ms) begin transaction
2257
+  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
2258
+ SQL (0.2ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
2259
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
2260
+  (17.3ms) 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)) 
2261
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
2262
+  (0.1ms) INSERT INTO "altered_inkwell_blog_items" ("id","item_id","is_reblog","is_comment","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (1, 1, NULL, 't', '2013-02-10 17:20:21.781392', '2013-02-10 17:20:21.781392', NULL, NULL, 'c')
2263
+  (0.0ms) INSERT INTO "altered_inkwell_blog_items" ("id","item_id","is_reblog","is_comment","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (2, 1, NULL, 'f', '2013-02-10 17:20:26.873137', '2013-02-10 17:20:26.873137', NULL, NULL, 'p')
2264
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2265
+  (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))
2266
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
2267
+  (0.0ms) INSERT INTO "inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (1, 1, NULL, '2013-02-10 17:20:21.781392', '2013-02-10 17:20:21.781392', NULL, NULL, 'c')
2268
+  (0.0ms) INSERT INTO "inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (2, 1, NULL, '2013-02-10 17:20:26.873137', '2013-02-10 17:20:26.873137', NULL, NULL, 'p')
2269
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
2270
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210221020')
2271
+  (33.5ms) commit transaction
2272
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2273
+ Connecting to database specified by database.yml
2274
+ Connecting to database specified by database.yml
2275
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2276
+ Connecting to database specified by database.yml
2277
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2278
+  (0.1ms) select sqlite_version(*)
2279
+  (16.5ms) CREATE TABLE "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) 
2280
+  (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, "is_owner_user" boolean, "item_type" varchar(255))
2281
+  (5.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) 
2282
+  (3.5ms) 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)
2283
+  (6.3ms) 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) 
2284
+  (4.0ms) 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 '[]')
2285
+  (7.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_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') 
2286
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2287
+  (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2288
+  (0.0ms) SELECT version FROM "schema_migrations"
2289
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210221020')
2290
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
2291
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
2292
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
2293
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
2294
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
2295
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
2296
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
2297
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
2298
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2299
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2300
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
2301
+ Connecting to database specified by database.yml
2302
+  (0.1ms) select sqlite_version(*)
2303
+  (348.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2304
+  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2305
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
2306
+ Migrating to CreatePosts (20121202111750)
2307
+  (0.1ms) begin transaction
2308
+  (0.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)
2309
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
2310
+  (8.2ms) commit transaction
2311
+ Migrating to CreateUsers (20121202112556)
2312
+  (0.1ms) begin transaction
2313
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2314
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
2315
+  (6.8ms) commit transaction
2316
+ Migrating to CreateCommunities (20130201155147)
2317
+  (0.1ms) begin transaction
2318
+  (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)
2319
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
2320
+  (6.1ms) commit transaction
2321
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2322
+  (0.1ms) begin transaction
2323
+  (0.6ms) 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)
2324
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
2325
+  (8.8ms) commit transaction
2326
+ Migrating to AddColumnsToPosts (20130208134949)
2327
+  (0.1ms) begin transaction
2328
+  (0.5ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
2329
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
2330
+  (0.3ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
2331
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
2332
+  (6.0ms) commit transaction
2333
+ Migrating to CreateInkwellBlogItems (20130208134950)
2334
+  (0.1ms) begin transaction
2335
+  (1.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)
2336
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
2337
+  (6.3ms) commit transaction
2338
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2339
+  (0.1ms) begin transaction
2340
+  (0.7ms) 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)
2341
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
2342
+  (8.6ms) commit transaction
2343
+ Migrating to AddColumnsToUsers (20130208134952)
2344
+  (0.0ms) begin transaction
2345
+  (0.7ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
2346
+  (0.4ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
2347
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
2348
+  (5.9ms) commit transaction
2349
+ Migrating to CreateInkwellComments (20130208134953)
2350
+  (0.1ms) begin transaction
2351
+  (0.4ms) 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) 
2352
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
2353
+  (5.5ms) commit transaction
2354
+ Migrating to ChangeTablesForCommunities (20130208134954)
2355
+  (0.1ms) begin transaction
2356
+  (0.5ms) 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) 
2357
+  (0.1ms) SELECT * FROM "inkwell_comments"
2358
+  (0.5ms) DROP TABLE "inkwell_comments"
2359
+  (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 DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2360
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
2361
+  (0.3ms) DROP TABLE "altered_inkwell_comments"
2362
+  (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 DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2363
+  (0.1ms) SELECT * FROM "inkwell_comments"
2364
+  (0.1ms) DROP TABLE "inkwell_comments"
2365
+  (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)
2366
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
2367
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2368
+  (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) 
2369
+  (0.1ms) SELECT * FROM "inkwell_comments"
2370
+  (0.1ms) DROP TABLE "inkwell_comments"
2371
+  (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)
2372
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
2373
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2374
+  (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) 
2375
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
2376
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2377
+  (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)
2378
+  (0.1ms) SELECT * FROM "altered_inkwell_blog_items"
2379
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
2380
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
2381
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
2382
+  (0.2ms) 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) 
2383
+  (0.1ms) SELECT * FROM "inkwell_timeline_items"
2384
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
2385
+  (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)
2386
+  (0.1ms) SELECT * FROM "altered_inkwell_timeline_items"
2387
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
2388
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
2389
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
2390
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
2391
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
2392
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
2393
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
2394
+  (4.5ms) commit transaction
2395
+ Migrating to AddCommunityIdsToPost (20130208134955)
2396
+  (0.0ms) begin transaction
2397
+  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
2398
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
2399
+  (6.3ms) commit transaction
2400
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2401
+  (0.0ms) begin transaction
2402
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
2403
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
2404
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
2405
+  (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))
2406
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
2407
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2408
+  (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)) 
2409
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
2410
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
2411
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
2412
+ SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
2413
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
2414
+  (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)) 
2415
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
2416
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
2417
+  (0.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))
2418
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
2419
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
2420
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
2421
+ SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
2422
+ SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
2423
+  (0.2ms) 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))
2424
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
2425
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
2426
+  (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)) 
2427
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
2428
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
2429
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
2430
+  (4.0ms) commit transaction
2431
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
2432
+ Connecting to database specified by database.yml
2433
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2434
+  (0.1ms) select sqlite_version(*)
2435
+  (77.3ms) CREATE TABLE "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) 
2436
+  (6.3ms) 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))
2437
+  (8.7ms) 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) 
2438
+  (6.9ms) 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))
2439
+  (8.6ms) 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)) 
2440
+  (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 '[]')
2441
+  (8.3ms) 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_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') 
2442
+  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2443
+  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2444
+  (0.1ms) SELECT version FROM "schema_migrations"
2445
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
2446
+  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
2447
+  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
2448
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
2449
+  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
2450
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
2451
+  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
2452
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
2453
+  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
2454
+  (6.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2455
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2456
+  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
2457
+ Connecting to database specified by database.yml
2458
+ Connecting to database specified by database.yml
2459
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2460
+ Migrating to CreatePosts (20121202111750)
2461
+ Migrating to CreateUsers (20121202112556)
2462
+ Migrating to CreateCommunities (20130201155147)
2463
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2464
+ Migrating to AddColumnsToPosts (20130208134949)
2465
+ Migrating to CreateInkwellBlogItems (20130208134950)
2466
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2467
+ Migrating to AddColumnsToUsers (20130208134952)
2468
+ Migrating to CreateInkwellComments (20130208134953)
2469
+ Migrating to ChangeTablesForCommunities (20130208134954)
2470
+ Migrating to AddCommunityIdsToPost (20130208134955)
2471
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2472
+ Migrating to AddOwnerTypeToLines (20130212130848)
2473
+  (0.0ms) select sqlite_version(*)
2474
+  (0.0ms) begin transaction
2475
+  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
2476
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
2477
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
2478
+  (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)) 
2479
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
2480
+  (0.0ms) INSERT INTO "altered_inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","is_owner_user","item_type","owner_type") VALUES (1, NULL, NULL, '2013-02-12 13:08:10.905342', '2013-02-12 13:08:10.905342', NULL, NULL, NULL, NULL)
2481
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2482
+  (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)) 
2483
+  (0.1ms) SELECT * FROM "altered_inkwell_blog_items"
2484
+  (0.0ms) INSERT INTO "inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","item_type","owner_type") VALUES (1, NULL, NULL, '2013-02-12 13:08:10.905342', '2013-02-12 13:08:10.905342', NULL, NULL, NULL)
2485
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
2486
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
2487
+ SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
2488
+  (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)) 
2489
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
2490
+  (0.0ms) INSERT INTO "altered_inkwell_favorite_items" ("id","item_id","owner_id","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '2013-02-12 13:08:23.626933', '2013-02-12 13:08:23.626933', NULL, 'u')
2491
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
2492
+  (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)) 
2493
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
2494
+  (0.0ms) INSERT INTO "inkwell_favorite_items" ("id","item_id","owner_id","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '2013-02-12 13:08:23.626933', '2013-02-12 13:08:23.626933', NULL, 'u')
2495
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
2496
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
2497
+ SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
2498
+  (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)) 
2499
+  (0.1ms) SELECT * FROM "inkwell_timeline_items"
2500
+  (0.0ms) INSERT INTO "altered_inkwell_timeline_items" ("id","item_id","owner_id","from_source","has_many_sources","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '[]', 'f', '2013-02-12 13:07:57.065346', '2013-02-12 13:07:57.065346', NULL, 'u')
2501
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
2502
+  (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)) 
2503
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
2504
+  (0.0ms) INSERT INTO "inkwell_timeline_items" ("id","item_id","owner_id","from_source","has_many_sources","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '[]', 'f', '2013-02-12 13:07:57.065346', '2013-02-12 13:07:57.065346', NULL, 'u')
2505
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
2506
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
2507
+  (101.8ms) commit transaction
2508
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2509
+ Connecting to database specified by database.yml
2510
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2511
+  (0.2ms) select sqlite_version(*)
2512
+  (42.1ms) CREATE TABLE "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) 
2513
+  (7.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))
2514
+  (8.5ms) 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) 
2515
+  (6.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))
2516
+  (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)) 
2517
+  (5.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 '[]')
2518
+  (6.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_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') 
2519
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2520
+  (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2521
+  (0.0ms) SELECT version FROM "schema_migrations"
2522
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
2523
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
2524
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
2525
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
2526
+  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
2527
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
2528
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
2529
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
2530
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
2531
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2532
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
2533
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2534
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
2535
+ Connecting to database specified by database.yml
2536
+ Connecting to database specified by database.yml
2537
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2538
+  (0.1ms) select sqlite_version(*)
2539
+  (18.8ms) CREATE TABLE "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) 
2540
+  (4.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))
2541
+  (4.8ms) 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) 
2542
+  (4.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))
2543
+  (129.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)) 
2544
+  (121.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 '[]')
2545
+  (8.8ms) 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_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') 
2546
+  (6.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2547
+  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2548
+  (0.1ms) SELECT version FROM "schema_migrations"
2549
+  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
2550
+  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
2551
+  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
2552
+  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
2553
+  (5.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
2554
+  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
2555
+  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
2556
+  (5.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
2557
+  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
2558
+  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2559
+  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
2560
+  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2561
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
2562
+ Connecting to database specified by database.yml
2563
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2564
+ Migrating to CreatePosts (20121202111750)
2565
+ Migrating to CreateUsers (20121202112556)
2566
+ Migrating to CreateCommunities (20130201155147)
2567
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2568
+ Migrating to AddColumnsToPosts (20130208134949)
2569
+ Migrating to CreateInkwellBlogItems (20130208134950)
2570
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2571
+ Migrating to AddColumnsToUsers (20130208134952)
2572
+ Migrating to CreateInkwellComments (20130208134953)
2573
+ Migrating to ChangeTablesForCommunities (20130208134954)
2574
+ Migrating to AddCommunityIdsToPost (20130208134955)
2575
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2576
+ Migrating to AddOwnerTypeToLines (20130212130848)
2577
+ Migrating to RefactorCommentTable (20130213101535)
2578
+  (0.0ms) select sqlite_version(*)
2579
+  (0.0ms) begin transaction
2580
+  (0.0ms) rollback transaction
2581
+ Connecting to database specified by database.yml
2582
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2583
+ Migrating to CreatePosts (20121202111750)
2584
+ Migrating to CreateUsers (20121202112556)
2585
+ Migrating to CreateCommunities (20130201155147)
2586
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2587
+ Migrating to AddColumnsToPosts (20130208134949)
2588
+ Migrating to CreateInkwellBlogItems (20130208134950)
2589
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2590
+ Migrating to AddColumnsToUsers (20130208134952)
2591
+ Migrating to CreateInkwellComments (20130208134953)
2592
+ Migrating to ChangeTablesForCommunities (20130208134954)
2593
+ Migrating to AddCommunityIdsToPost (20130208134955)
2594
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2595
+ Migrating to AddOwnerTypeToLines (20130212130848)
2596
+ Migrating to RefactorCommentTable (20130213101640)
2597
+  (0.0ms) select sqlite_version(*)
2598
+  (0.0ms) begin transaction
2599
+  (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" 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)
2600
+  (0.7ms) SELECT * FROM "inkwell_comments"
2601
+  (0.4ms) DROP TABLE "inkwell_comments"
2602
+  (0.1ms) CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj" 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) 
2603
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
2604
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2605
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
2606
+ SQL (0.1ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
2607
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101640')
2608
+  (45.0ms) commit transaction
2609
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
2610
+ Connecting to database specified by database.yml
2611
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2612
+ Migrating to CreatePosts (20121202111750)
2613
+ Migrating to CreateUsers (20121202112556)
2614
+ Migrating to CreateCommunities (20130201155147)
2615
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2616
+ Migrating to AddColumnsToPosts (20130208134949)
2617
+ Migrating to CreateInkwellBlogItems (20130208134950)
2618
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2619
+ Migrating to AddColumnsToUsers (20130208134952)
2620
+ Migrating to CreateInkwellComments (20130208134953)
2621
+ Migrating to ChangeTablesForCommunities (20130208134954)
2622
+ Migrating to AddCommunityIdsToPost (20130208134955)
2623
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2624
+ Migrating to AddOwnerTypeToLines (20130212130848)
2625
+  (0.0ms) select sqlite_version(*)
2626
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2627
+ Connecting to database specified by database.yml
2628
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2629
+ Migrating to CreatePosts (20121202111750)
2630
+ Migrating to CreateUsers (20121202112556)
2631
+ Migrating to CreateCommunities (20130201155147)
2632
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2633
+ Migrating to AddColumnsToPosts (20130208134949)
2634
+ Migrating to CreateInkwellBlogItems (20130208134950)
2635
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2636
+ Migrating to AddColumnsToUsers (20130208134952)
2637
+ Migrating to CreateInkwellComments (20130208134953)
2638
+ Migrating to ChangeTablesForCommunities (20130208134954)
2639
+ Migrating to AddCommunityIdsToPost (20130208134955)
2640
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2641
+ Migrating to AddOwnerTypeToLines (20130212130848)
2642
+ Migrating to RefactorCommentTable (20130213101736)
2643
+  (0.0ms) select sqlite_version(*)
2644
+  (0.0ms) begin transaction
2645
+  (0.0ms) rollback transaction
2646
+ Connecting to database specified by database.yml
2647
+  (0.1ms) select sqlite_version(*)
2648
+  (22.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2649
+  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2650
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
2651
+ Migrating to CreatePosts (20121202111750)
2652
+  (0.0ms) begin transaction
2653
+  (0.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)
2654
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
2655
+  (5.4ms) commit transaction
2656
+ Migrating to CreateUsers (20121202112556)
2657
+  (0.0ms) begin transaction
2658
+  (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)
2659
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
2660
+  (4.2ms) commit transaction
2661
+ Migrating to CreateCommunities (20130201155147)
2662
+  (0.0ms) begin transaction
2663
+  (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)
2664
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
2665
+  (4.1ms) commit transaction
2666
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2667
+  (0.0ms) begin transaction
2668
+  (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)
2669
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
2670
+  (4.4ms) commit transaction
2671
+ Migrating to AddColumnsToPosts (20130208134949)
2672
+  (0.0ms) begin transaction
2673
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
2674
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
2675
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
2676
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
2677
+  (4.1ms) commit transaction
2678
+ Migrating to CreateInkwellBlogItems (20130208134950)
2679
+  (0.0ms) begin transaction
2680
+  (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)
2681
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
2682
+  (3.2ms) commit transaction
2683
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2684
+  (0.0ms) begin transaction
2685
+  (0.1ms) 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)
2686
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
2687
+  (4.9ms) commit transaction
2688
+ Migrating to AddColumnsToUsers (20130208134952)
2689
+  (0.0ms) begin transaction
2690
+  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
2691
+  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
2692
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
2693
+  (3.5ms) commit transaction
2694
+ Migrating to CreateInkwellComments (20130208134953)
2695
+  (0.0ms) begin transaction
2696
+  (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) 
2697
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
2698
+  (3.8ms) commit transaction
2699
+ Migrating to ChangeTablesForCommunities (20130208134954)
2700
+  (0.0ms) begin transaction
2701
+  (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) 
2702
+  (0.1ms) SELECT * FROM "inkwell_comments"
2703
+  (0.0ms) DROP TABLE "inkwell_comments"
2704
+  (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, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2705
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
2706
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2707
+  (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) 
2708
+  (0.0ms) SELECT * FROM "inkwell_comments"
2709
+  (0.1ms) DROP TABLE "inkwell_comments"
2710
+  (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)
2711
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
2712
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2713
+  (0.8ms) 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) 
2714
+  (0.0ms) SELECT * FROM "inkwell_comments"
2715
+  (0.1ms) DROP TABLE "inkwell_comments"
2716
+  (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)
2717
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
2718
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2719
+  (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) 
2720
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
2721
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2722
+  (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)
2723
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
2724
+  (0.0ms) DROP TABLE "altered_inkwell_blog_items"
2725
+  (0.0ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
2726
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
2727
+  (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) 
2728
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
2729
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
2730
+  (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)
2731
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
2732
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
2733
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
2734
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
2735
+  (0.2ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
2736
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
2737
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
2738
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
2739
+  (3.8ms) commit transaction
2740
+ Migrating to AddCommunityIdsToPost (20130208134955)
2741
+  (0.0ms) begin transaction
2742
+  (0.4ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
2743
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
2744
+  (3.9ms) commit transaction
2745
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2746
+  (0.0ms) begin transaction
2747
+  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
2748
+ SQL (0.3ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
2749
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
2750
+  (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))
2751
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
2752
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2753
+  (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)) 
2754
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
2755
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
2756
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
2757
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
2758
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
2759
+  (0.2ms) 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)) 
2760
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
2761
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
2762
+  (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))
2763
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
2764
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
2765
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
2766
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
2767
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
2768
+  (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))
2769
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
2770
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
2771
+  (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)) 
2772
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
2773
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
2774
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
2775
+  (4.3ms) commit transaction
2776
+ Migrating to AddOwnerTypeToLines (20130212130848)
2777
+  (0.0ms) begin transaction
2778
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
2779
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
2780
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
2781
+  (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))
2782
+  (0.1ms) SELECT * FROM "inkwell_blog_items"
2783
+  (0.1ms) DROP TABLE "inkwell_blog_items"
2784
+  (0.3ms) 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)) 
2785
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
2786
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
2787
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
2788
+ SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
2789
+  (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))
2790
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
2791
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
2792
+  (0.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)) 
2793
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
2794
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
2795
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
2796
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
2797
+  (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))
2798
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
2799
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
2800
+  (0.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)) 
2801
+  (0.1ms) SELECT * FROM "altered_inkwell_timeline_items"
2802
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
2803
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
2804
+  (4.2ms) commit transaction
2805
+ Migrating to RefactorCommentTable (20130213101736)
2806
+  (0.0ms) begin transaction
2807
+  (0.4ms) 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) 
2808
+  (0.1ms) SELECT * FROM "inkwell_comments"
2809
+  (0.3ms) DROP TABLE "inkwell_comments"
2810
+  (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)
2811
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
2812
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2813
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
2814
+ SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
2815
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
2816
+  (3.6ms) commit transaction
2817
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2818
+ Connecting to database specified by database.yml
2819
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2820
+  (0.1ms) select sqlite_version(*)
2821
+  (8.1ms) CREATE TABLE "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) 
2822
+  (3.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))
2823
+  (4.7ms) 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, "topmost_obj_type" varchar(255)) 
2824
+  (3.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))
2825
+  (5.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)) 
2826
+  (4.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 '[]')
2827
+  (5.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_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') 
2828
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2829
+  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2830
+  (0.1ms) SELECT version FROM "schema_migrations"
2831
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
2832
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
2833
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
2834
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
2835
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
2836
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
2837
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
2838
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
2839
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
2840
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
2841
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2842
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
2843
+  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2844
+  (279.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
2845
+ Connecting to database specified by database.yml
2846
+ Connecting to database specified by database.yml
2847
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2848
+ Migrating to CreatePosts (20121202111750)
2849
+ Migrating to CreateUsers (20121202112556)
2850
+ Migrating to CreateCommunities (20130201155147)
2851
+ Migrating to CreateInkwellTimelineItems (20130208134948)
2852
+ Migrating to AddColumnsToPosts (20130208134949)
2853
+ Migrating to CreateInkwellBlogItems (20130208134950)
2854
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
2855
+ Migrating to AddColumnsToUsers (20130208134952)
2856
+ Migrating to CreateInkwellComments (20130208134953)
2857
+ Migrating to ChangeTablesForCommunities (20130208134954)
2858
+ Migrating to AddCommunityIdsToPost (20130208134955)
2859
+ Migrating to ChangeIsCommentToItemType (20130210231424)
2860
+ Migrating to AddOwnerTypeToLines (20130212130848)
2861
+ Migrating to RefactorCommentTable (20130213101736)
2862
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
2863
+  (0.0ms) select sqlite_version(*)
2864
+  (0.0ms) begin transaction
2865
+  (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))
2866
+  (0.1ms) SELECT * FROM "inkwell_comments"
2867
+  (0.3ms) DROP TABLE "inkwell_comments"
2868
+  (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)) 
2869
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
2870
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
2871
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
2872
+  (25.3ms) commit transaction
2873
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
2874
+ Connecting to database specified by database.yml
2875
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2876
+  (0.1ms) select sqlite_version(*)
2877
+  (19.5ms) CREATE TABLE "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) 
2878
+  (3.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))
2879
+  (4.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)) 
2880
+  (3.5ms) 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))
2881
+  (6.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)) 
2882
+  (3.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 '[]')
2883
+  (5.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_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') 
2884
+  (4.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2885
+  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2886
+  (0.0ms) SELECT version FROM "schema_migrations"
2887
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
2888
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
2889
+  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
2890
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
2891
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
2892
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
2893
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
2894
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
2895
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
2896
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
2897
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
2898
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
2899
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
2900
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
2901
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')