inkwell 1.2.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. data/app/models/inkwell/community_user.rb +15 -0
  2. data/app/models/inkwell/following.rb +8 -0
  3. data/db/migrate/20130212130888_refactor_followings_relation.rb +27 -0
  4. data/db/migrate/20130212130898_refactor_user_community_relation.rb +72 -0
  5. data/db/migrate/20130212130908_refactor_invites_bans_mutes.rb +48 -0
  6. data/lib/acts_as_inkwell_community/base.rb +185 -180
  7. data/lib/acts_as_inkwell_user/base.rb +72 -30
  8. data/lib/common/base.rb +21 -0
  9. data/lib/inkwell/version.rb +1 -1
  10. data/test/dummy/db/development.sqlite3 +0 -0
  11. data/test/dummy/db/migrate/20130227154519_refactor_followings_relation.inkwell.rb +28 -0
  12. data/test/dummy/db/migrate/20130228115224_refactor_user_community_relation.inkwell.rb +73 -0
  13. data/test/dummy/db/migrate/20130312084529_refactor_invites_bans_mutes.inkwell.rb +49 -0
  14. data/test/dummy/db/schema.rb +33 -12
  15. data/test/dummy/db/test.sqlite3 +0 -0
  16. data/test/dummy/log/development.log +1986 -0
  17. data/test/dummy/log/test.log +0 -0
  18. data/test/dummy/spec/functional/community_spec.rb +513 -196
  19. data/test/dummy/spec/functional/following_spec.rb +55 -7
  20. data/test/dummy_without_community/db/development.sqlite3 +0 -0
  21. data/test/dummy_without_community/db/migrate/20130313083915_refactor_followings_relation.inkwell.rb +28 -0
  22. data/test/dummy_without_community/db/migrate/20130313083916_refactor_user_community_relation.inkwell.rb +73 -0
  23. data/test/dummy_without_community/db/migrate/20130313083917_refactor_invites_bans_mutes.inkwell.rb +49 -0
  24. data/test/dummy_without_community/db/schema.rb +12 -5
  25. data/test/dummy_without_community/db/test.sqlite3 +0 -0
  26. data/test/dummy_without_community/log/development.log +78 -0
  27. data/test/dummy_without_community/log/test.log +12652 -0
  28. data/test/dummy_without_community/spec/functional/following_spec.rb +20 -7
  29. metadata +31 -14
@@ -11,6 +11,15 @@ module Inkwell
11
11
  module Config
12
12
  def acts_as_inkwell_user
13
13
  has_many :comments, :class_name => 'Inkwell::Comment'
14
+ has_many :following_relations, :class_name => 'Inkwell::Following', :foreign_key => :follower_id
15
+ has_many :followings, :through => :following_relations, :class_name => ::Inkwell::Engine::config.user_table.to_s.singularize.capitalize
16
+ has_many :follower_relations, :class_name => 'Inkwell::Following', :foreign_key => :followed_id
17
+ has_many :followers, :through => :follower_relations, :class_name => ::Inkwell::Engine::config.user_table.to_s.singularize.capitalize
18
+ if ::Inkwell::Engine::config.respond_to?('community_table')
19
+ has_many :communities_users, :class_name => 'Inkwell::CommunityUser'
20
+ has_many :communities, :through => :communities_users, :class_name => ::Inkwell::Engine::config.community_table.to_s.singularize.capitalize, :conditions => {"inkwell_community_users.active" => true}
21
+ end
22
+ before_destroy :destroy_processing
14
23
  include ::Inkwell::ActsAsInkwellUser::InstanceMethods
15
24
  end
16
25
  end
@@ -66,10 +75,13 @@ module Inkwell
66
75
  end
67
76
 
68
77
  def communities_row
69
- communities_info = ActiveSupport::JSON.decode self.communities_info
78
+ user_id = "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id"
79
+ community_id = "#{::Inkwell::Engine::config.community_table.to_s.singularize}_id"
80
+
81
+ relations = ::Inkwell::CommunityUser.where user_id => self.id
70
82
  result = []
71
- communities_info.each do |item|
72
- result << item[HashParams::COMMUNITY_ID]
83
+ relations.each do |relation|
84
+ result << relation.send(community_id)
73
85
  end
74
86
  result
75
87
  end
@@ -134,19 +146,17 @@ module Inkwell
134
146
  end
135
147
 
136
148
  def follow(user)
137
- return if self.follow? user
138
- raise "User tries to follow himself." if self == user
149
+ raise "user tries to follow already followed user" if self.follow? user
150
+ raise "user tries to follow himself." if self == user
139
151
 
140
- followers = ActiveSupport::JSON.decode user.followers_ids
141
- followers = followers << self.id
142
- user.followers_ids = ActiveSupport::JSON.encode followers
143
- user.save
152
+ ::Inkwell::Following.create :follower_id => self.id, :followed_id => user.id
144
153
 
145
- followings = ActiveSupport::JSON.decode self.followings_ids
146
- followings << user.id
147
- self.followings_ids = ActiveSupport::JSON.encode followings
154
+ self.following_count += 1
148
155
  self.save
149
156
 
157
+ user.follower_count += 1
158
+ user.save
159
+
150
160
  post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
151
161
  user_id_attr = "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id"
152
162
  ::Inkwell::BlogItem.where(:owner_id => user.id, :owner_type => OwnerTypes::USER).order("created_at DESC").limit(10).each do |blog_item|
@@ -180,19 +190,17 @@ module Inkwell
180
190
  end
181
191
 
182
192
  def unfollow(user)
183
- return unless self.follow? user
184
- raise "User tries to unfollow himself." if self == user
193
+ raise "user tries to unfollow not followed user" unless self.follow? user
194
+ raise "user tries to unfollow himself." if self == user
185
195
 
186
- followers = ActiveSupport::JSON.decode user.followers_ids
187
- followers.delete self.id
188
- user.followers_ids = ActiveSupport::JSON.encode followers
189
- user.save
196
+ ::Inkwell::Following.delete_all :follower_id => self.id, :followed_id => user.id
190
197
 
191
- followings = ActiveSupport::JSON.decode self.followings_ids
192
- followings.delete user.id
193
- self.followings_ids = ActiveSupport::JSON.encode followings
198
+ self.following_count -= 1
194
199
  self.save
195
200
 
201
+ user.follower_count -= 1
202
+ user.save
203
+
196
204
  timeline_items = ::Inkwell::TimelineItem.where(:owner_id => self.id, :owner_type => OwnerTypes::USER).where "from_source like '%{\"user_id\":#{user.id}%'"
197
205
  timeline_items.delete_all :has_many_sources => false
198
206
  timeline_items.each do |item|
@@ -205,16 +213,25 @@ module Inkwell
205
213
  end
206
214
 
207
215
  def follow?(user)
208
- followings = ActiveSupport::JSON.decode self.followings_ids
209
- followings.include? user.id
216
+ ::Inkwell::Following.exists? :follower_id => self.id, :followed_id => user.id
210
217
  end
211
218
 
212
219
  def followers_row
213
- ActiveSupport::JSON.decode self.followers_ids
220
+ records = ::Inkwell::Following.where :followed_id => self.id
221
+ result = []
222
+ records.each do |rec|
223
+ result << rec.follower_id
224
+ end
225
+ result
214
226
  end
215
227
 
216
228
  def followings_row
217
- ActiveSupport::JSON.decode self.followings_ids
229
+ records = ::Inkwell::Following.where :follower_id => self.id
230
+ result = []
231
+ records.each do |rec|
232
+ result << rec.followed_id
233
+ end
234
+ result
218
235
  end
219
236
 
220
237
  def reblog(obj)
@@ -373,9 +390,10 @@ module Inkwell
373
390
  end
374
391
 
375
392
  def can_send_post_to_community?(community)
376
- return false unless community.include_user? self
377
- return false if community.include_muted_user? self
378
- return false unless community.include_writer? self
393
+ relation = ::Inkwell::CommunityUser.where(user_id_attr => self.id, community_id_attr => community.id).first
394
+ return false unless relation
395
+ return false if relation.muted
396
+ return false unless relation.user_access == CommunityAccessLevels::WRITE
379
397
  true
380
398
  end
381
399
 
@@ -398,14 +416,38 @@ module Inkwell
398
416
  options.symbolize_keys!
399
417
  to_user = options[:to_user]
400
418
  in_community = options[:in_community]
401
- in_community.add_admin(:user => to_user, :admin => self)
419
+ in_community.add_admin :user => to_user, :admin => self
402
420
  end
403
421
 
404
422
  def revoke_admin_permissions(options = {})
405
423
  options.symbolize_keys!
406
424
  user = options[:user]
407
425
  in_community = options[:in_community]
408
- in_community.remove_admin(:user => user, :admin => self)
426
+ in_community.remove_admin :user => user, :admin => self
427
+ end
428
+
429
+ def destroy_processing
430
+ raise "there is community where this user is owner. Change their owner before destroy this user." unless community_class.where(:owner_id => self.id).empty?
431
+
432
+ communities_relations = ::Inkwell::CommunityUser.where user_id_attr => self.id
433
+ communities_relations.each do |relation|
434
+ community = community_class.find relation.send(community_id_attr)
435
+ if relation.active
436
+ if relation.user_access == CommunityAccessLevels::WRITE
437
+ community.writer_count -= 1
438
+ end
439
+ community.admin_count -= 1 if relation.is_admin
440
+ community.muted_count -= 1 if relation.muted
441
+ community.user_count -= 1
442
+ else
443
+ community.banned_count -= 1 if relation.banned
444
+ community.invitation_count -= 1 if relation.asked_invitation
445
+ end
446
+
447
+ community.save
448
+ end
449
+
450
+ ::Inkwell::CommunityUser.delete_all user_id_attr => self.id
409
451
  end
410
452
 
411
453
  end
@@ -34,9 +34,30 @@ module Inkwell
34
34
  post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
35
35
  raise "post should be a #{user_class.to_s}" unless obj.is_a? post_class
36
36
  end
37
+
38
+ def user_id_attr
39
+ "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id"
40
+ end
41
+
42
+ def user_class
43
+ Object.const_get ::Inkwell::Engine::config.user_table.to_s.singularize.capitalize
44
+ end
45
+
46
+ def post_class
47
+ Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
48
+ end
49
+
50
+ def community_id_attr
51
+ "#{::Inkwell::Engine::config.community_table.to_s.singularize}_id"
52
+ end
53
+
54
+ def community_class
55
+ Object.const_get ::Inkwell::Engine::config.community_table.to_s.singularize.capitalize
56
+ end
37
57
  end
38
58
 
39
59
  module Constants
60
+
40
61
  module ItemTypes
41
62
  POST = 'p'
42
63
  COMMENT = 'c'
@@ -1,3 +1,3 @@
1
1
  module Inkwell
2
- VERSION = "1.2.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -0,0 +1,28 @@
1
+ # This migration comes from inkwell (originally 20130212130888)
2
+ class RefactorFollowingsRelation < ActiveRecord::Migration
3
+ def change
4
+ create_table :inkwell_followings do |t|
5
+ t.integer :follower_id
6
+ t.integer :followed_id
7
+
8
+ t.timestamps
9
+ end
10
+ add_column ::Inkwell::Engine::config.user_table, :follower_count, :integer, :default => 0
11
+ add_column ::Inkwell::Engine::config.user_table, :following_count, :integer, :default => 0
12
+
13
+ user_class = Object.const_get ::Inkwell::Engine::config.user_table.to_s.singularize.capitalize
14
+ user_class.all.each do |user|
15
+ followings_ids = ActiveSupport::JSON.decode user.followings_ids
16
+ followers_ids = ActiveSupport::JSON.decode user.followers_ids
17
+ user.following_count = followings_ids.size
18
+ user.follower_count = followers_ids.size
19
+ user.save
20
+ followings_ids.each do |followed_id|
21
+ ::Inkwell::Following.create :follower_id => user.id, :followed_id => followed_id
22
+ end
23
+ end
24
+
25
+ remove_column ::Inkwell::Engine::config.user_table, :followers_ids
26
+ remove_column ::Inkwell::Engine::config.user_table, :followings_ids
27
+ end
28
+ end
@@ -0,0 +1,73 @@
1
+ # This migration comes from inkwell (originally 20130212130898)
2
+ class RefactorUserCommunityRelation < ActiveRecord::Migration
3
+ def change
4
+ if ::Inkwell::Engine::config.respond_to?('community_table')
5
+ user_id = "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id"
6
+ community_id = "#{::Inkwell::Engine::config.community_table.to_s.singularize}_id"
7
+
8
+ create_table :inkwell_community_users do |t|
9
+ t.integer user_id
10
+ t.integer community_id
11
+ t.string :user_access, :default => "r"
12
+ t.boolean :is_admin, :default => false
13
+ t.integer :admin_level
14
+ t.boolean :muted, :default => false
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_column ::Inkwell::Engine::config.community_table, :user_count, :integer, :default => 0
20
+ add_column ::Inkwell::Engine::config.community_table, :writer_count, :integer, :default => 0
21
+ add_column ::Inkwell::Engine::config.community_table, :admin_count, :integer, :default => 0
22
+ add_column ::Inkwell::Engine::config.community_table, :muted_count, :integer, :default => 0
23
+ add_column ::Inkwell::Engine::config.user_table, :community_count, :integer, :default => 0
24
+
25
+ community_class = Object.const_get ::Inkwell::Engine::config.community_table.to_s.singularize.capitalize
26
+
27
+ community_class.all.each do |community|
28
+ users_ids = ActiveSupport::JSON.decode community.users_ids
29
+ community.user_count = users_ids.size
30
+
31
+ users_ids.each do |uid|
32
+ ::Inkwell::CommunityUser.create user_id => uid, community_id => community.id
33
+ end
34
+
35
+ writers_ids = ActiveSupport::JSON.decode community.writers_ids
36
+ community.writer_count = writers_ids.size
37
+
38
+ writers_ids.each do |uid|
39
+ ::Inkwell::CommunityUser.where(user_id => uid, community_id => community.id).update_all(:user_access => "w")
40
+ end
41
+
42
+ admins_info = ActiveSupport::JSON.decode community.admins_info
43
+ community.admin_count = admins_info.size
44
+
45
+ admins_info.each do |rec|
46
+ ::Inkwell::CommunityUser.where(user_id => rec['admin_id'], community_id => community.id).update_all(:is_admin => true, :admin_level => rec['admin_level'])
47
+ end
48
+
49
+ muted_ids = ActiveSupport::JSON.decode community.muted_ids
50
+ community.muted_count = muted_ids.size
51
+
52
+ muted_ids.each do |uid|
53
+ ::Inkwell::CommunityUser.where(user_id => uid, community_id => community.id).update_all(:muted => true)
54
+ end
55
+
56
+ community.save
57
+ end
58
+
59
+ user_class = Object.const_get ::Inkwell::Engine::config.user_table.to_s.singularize.capitalize
60
+ user_class.all.each do |user|
61
+ communities_info = ActiveSupport::JSON.decode user.communities_info
62
+ user.community_count = communities_info.size
63
+ user.save
64
+ end
65
+
66
+ remove_column ::Inkwell::Engine::config.community_table, :users_ids
67
+ remove_column ::Inkwell::Engine::config.community_table, :writers_ids
68
+ remove_column ::Inkwell::Engine::config.community_table, :admins_info
69
+ remove_column ::Inkwell::Engine::config.community_table, :muted_ids
70
+ remove_column ::Inkwell::Engine::config.user_table, :communities_info
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,49 @@
1
+ # This migration comes from inkwell (originally 20130212130908)
2
+ class RefactorInvitesBansMutes < ActiveRecord::Migration
3
+ def change
4
+ if ::Inkwell::Engine::config.respond_to?('community_table')
5
+ user_id = "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id"
6
+ community_id = "#{::Inkwell::Engine::config.community_table.to_s.singularize}_id"
7
+
8
+ add_column ::Inkwell::Engine::config.community_table, :banned_count, :integer, :default => 0
9
+ add_column ::Inkwell::Engine::config.community_table, :invitation_count, :integer, :default => 0
10
+
11
+ change_column ::Inkwell::Engine::config.community_table, :user_count, :integer, :default => 1
12
+ change_column ::Inkwell::Engine::config.community_table, :admin_count, :integer, :default => 1
13
+ change_column ::Inkwell::Engine::config.community_table, :writer_count, :integer, :default => 1
14
+
15
+ add_column :inkwell_community_users, :active, :boolean, :default => false
16
+ add_column :inkwell_community_users, :banned, :boolean, :default => false
17
+ add_column :inkwell_community_users, :asked_invitation, :boolean, :default => false
18
+
19
+ community_class = Object.const_get ::Inkwell::Engine::config.community_table.to_s.singularize.capitalize
20
+
21
+ community_class.all.each do |community|
22
+ banned_ids = ActiveSupport::JSON.decode community.banned_ids
23
+ community.banned_count = banned_ids.size
24
+ banned_ids.each do |uid|
25
+ relations = ::Inkwell::CommunityUser.where community_id => community.id, user_id => uid
26
+ if relations.empty?
27
+ ::Inkwell::CommunityUser.create community_id => community.id, user_id => uid, :active => false, :banned => true
28
+ else
29
+ relation = relations.first
30
+ relation.active = false
31
+ relation.banned = true
32
+ relation.save
33
+ end
34
+ end
35
+
36
+ invitations_uids = ActiveSupport::JSON.decode community.invitations_uids
37
+ community.invitation_count = invitations_uids.size
38
+ invitations_uids.each do |uid|
39
+ ::Inkwell::CommunityUser.create community_id => community.id, user_id => uid, :active => false, :asked_invitation => true
40
+ end
41
+
42
+ community.save
43
+ end
44
+
45
+ remove_column ::Inkwell::Engine::config.community_table, :banned_ids
46
+ remove_column ::Inkwell::Engine::config.community_table, :invitations_uids
47
+ end
48
+ end
49
+ end
@@ -11,21 +11,21 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130217135512) do
14
+ ActiveRecord::Schema.define(:version => 20130312084529) do
15
15
 
16
16
  create_table "communities", :force => true do |t|
17
17
  t.string "name"
18
18
  t.datetime "created_at", :null => false
19
19
  t.datetime "updated_at", :null => false
20
- t.text "users_ids", :default => "[]"
21
- t.text "admins_info", :default => "[]"
22
20
  t.integer "owner_id"
23
21
  t.string "default_user_access", :default => "w"
24
- t.text "writers_ids", :default => "[]"
25
- t.text "banned_ids", :default => "[]"
26
- t.text "muted_ids", :default => "[]"
27
- t.text "invitations_uids", :default => "[]"
28
22
  t.boolean "public", :default => true
23
+ t.integer "user_count", :default => 1
24
+ t.integer "writer_count", :default => 1
25
+ t.integer "admin_count", :default => 1
26
+ t.integer "muted_count", :default => 0
27
+ t.integer "banned_count", :default => 0
28
+ t.integer "invitation_count", :default => 0
29
29
  end
30
30
 
31
31
  create_table "inkwell_blog_items", :force => true do |t|
@@ -52,6 +52,20 @@ ActiveRecord::Schema.define(:version => 20130217135512) do
52
52
  t.string "topmost_obj_type"
53
53
  end
54
54
 
55
+ create_table "inkwell_community_users", :force => true do |t|
56
+ t.integer "user_id"
57
+ t.integer "community_id"
58
+ t.string "user_access", :default => "r"
59
+ t.boolean "is_admin", :default => false
60
+ t.integer "admin_level"
61
+ t.boolean "muted", :default => false
62
+ t.datetime "created_at", :null => false
63
+ t.datetime "updated_at", :null => false
64
+ t.boolean "active", :default => false
65
+ t.boolean "banned", :default => false
66
+ t.boolean "asked_invitation", :default => false
67
+ end
68
+
55
69
  create_table "inkwell_favorite_items", :force => true do |t|
56
70
  t.integer "item_id"
57
71
  t.integer "owner_id"
@@ -61,6 +75,13 @@ ActiveRecord::Schema.define(:version => 20130217135512) do
61
75
  t.string "owner_type"
62
76
  end
63
77
 
78
+ create_table "inkwell_followings", :force => true do |t|
79
+ t.integer "follower_id"
80
+ t.integer "followed_id"
81
+ t.datetime "created_at", :null => false
82
+ t.datetime "updated_at", :null => false
83
+ end
84
+
64
85
  create_table "inkwell_timeline_items", :force => true do |t|
65
86
  t.integer "item_id"
66
87
  t.integer "owner_id"
@@ -86,11 +107,11 @@ ActiveRecord::Schema.define(:version => 20130217135512) do
86
107
 
87
108
  create_table "users", :force => true do |t|
88
109
  t.string "nick"
89
- t.datetime "created_at", :null => false
90
- t.datetime "updated_at", :null => false
91
- t.text "followers_ids", :default => "[]"
92
- t.text "followings_ids", :default => "[]"
93
- t.text "communities_info", :default => "[]"
110
+ t.datetime "created_at", :null => false
111
+ t.datetime "updated_at", :null => false
112
+ t.integer "follower_count", :default => 0
113
+ t.integer "following_count", :default => 0
114
+ t.integer "community_count", :default => 0
94
115
  end
95
116
 
96
117
  end
Binary file
@@ -4400,3 +4400,1989 @@ Connecting to database specified by database.yml
4400
4400
   (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
4401
4401
   (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
4402
4402
   (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
4403
+ Connecting to database specified by database.yml
4404
+ Connecting to database specified by database.yml
4405
+ Connecting to database specified by database.yml
4406
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4407
+ Migrating to CreatePosts (20121202111750)
4408
+ Migrating to CreateUsers (20121202112556)
4409
+ Migrating to CreateCommunities (20130201155147)
4410
+ Migrating to CreateInkwellTimelineItems (20130208134948)
4411
+ Migrating to AddColumnsToPosts (20130208134949)
4412
+ Migrating to CreateInkwellBlogItems (20130208134950)
4413
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
4414
+ Migrating to AddColumnsToUsers (20130208134952)
4415
+ Migrating to CreateInkwellComments (20130208134953)
4416
+ Migrating to ChangeTablesForCommunities (20130208134954)
4417
+ Migrating to AddCommunityIdsToPost (20130208134955)
4418
+ Migrating to ChangeIsCommentToItemType (20130210231424)
4419
+ Migrating to AddOwnerTypeToLines (20130212130848)
4420
+ Migrating to RefactorCommentTable (20130213101736)
4421
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
4422
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
4423
+ Migrating to RefactorFollowingsRelation (20130227145057)
4424
+  (0.0ms) select sqlite_version(*)
4425
+  (0.1ms) begin transaction
4426
+  (0.4ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer)
4427
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer
4428
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer
4429
+ User Load (0.1ms) SELECT "users".* FROM "users" 
4430
+  (0.2ms) rollback transaction
4431
+ Connecting to database specified by database.yml
4432
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4433
+ Migrating to CreatePosts (20121202111750)
4434
+ Migrating to CreateUsers (20121202112556)
4435
+ Migrating to CreateCommunities (20130201155147)
4436
+ Migrating to CreateInkwellTimelineItems (20130208134948)
4437
+ Migrating to AddColumnsToPosts (20130208134949)
4438
+ Migrating to CreateInkwellBlogItems (20130208134950)
4439
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
4440
+ Migrating to AddColumnsToUsers (20130208134952)
4441
+ Migrating to CreateInkwellComments (20130208134953)
4442
+ Migrating to ChangeTablesForCommunities (20130208134954)
4443
+ Migrating to AddCommunityIdsToPost (20130208134955)
4444
+ Migrating to ChangeIsCommentToItemType (20130210231424)
4445
+ Migrating to AddOwnerTypeToLines (20130212130848)
4446
+ Migrating to RefactorCommentTable (20130213101736)
4447
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
4448
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
4449
+ Migrating to RefactorFollowingsRelation (20130227145215)
4450
+  (0.0ms) select sqlite_version(*)
4451
+  (0.0ms) begin transaction
4452
+  (0.3ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer)
4453
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer
4454
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer
4455
+ User Load (0.1ms) SELECT "users".* FROM "users" 
4456
+ SQL (1.5ms) INSERT INTO "inkwell_followings" ("followed_id", "follower_id") VALUES (?, ?) [["followed_id", 2], ["follower_id", 1]]
4457
+  (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, "following_count" integer) 
4458
+  (0.1ms) SELECT * FROM "users"
4459
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followers_ids","followings_ids","communities_info","follower_count","following_count") VALUES (1, 'Salkar', '2013-02-27 14:17:57.694395', '2013-02-27 14:18:29.889047', '[]', '[2]', '[]', NULL, NULL)
4460
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followers_ids","followings_ids","communities_info","follower_count","following_count") VALUES (2, 'Morozovm', '2013-02-27 14:18:17.149614', '2013-02-27 14:18:29.665232', '[1]', '[]', '[]', NULL, NULL)
4461
+  (16.3ms) DROP TABLE "users"
4462
+  (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, "following_count" integer)
4463
+  (0.0ms) SELECT * FROM "altered_users"
4464
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (1, 'Salkar', '2013-02-27 14:17:57.694395', '2013-02-27 14:18:29.889047', '[2]', '[]', NULL, NULL)
4465
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (2, 'Morozovm', '2013-02-27 14:18:17.149614', '2013-02-27 14:18:29.665232', '[]', '[]', NULL, NULL)
4466
+  (0.1ms) DROP TABLE "altered_users"
4467
+  (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, "following_count" integer) 
4468
+  (0.0ms) SELECT * FROM "users"
4469
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (1, 'Salkar', '2013-02-27 14:17:57.694395', '2013-02-27 14:18:29.889047', '[2]', '[]', NULL, NULL)
4470
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (2, 'Morozovm', '2013-02-27 14:18:17.149614', '2013-02-27 14:18:29.665232', '[]', '[]', NULL, NULL)
4471
+  (0.1ms) DROP TABLE "users"
4472
+  (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, "following_count" integer)
4473
+  (0.0ms) SELECT * FROM "altered_users"
4474
+  (0.1ms) INSERT INTO "users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count") VALUES (1, 'Salkar', '2013-02-27 14:17:57.694395', '2013-02-27 14:18:29.889047', '[]', NULL, NULL)
4475
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count") VALUES (2, 'Morozovm', '2013-02-27 14:18:17.149614', '2013-02-27 14:18:29.665232', '[]', NULL, NULL)
4476
+  (0.1ms) DROP TABLE "altered_users"
4477
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227145215')
4478
+  (19.7ms) commit transaction
4479
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4480
+ Connecting to database specified by database.yml
4481
+ Connecting to database specified by database.yml
4482
+  (0.1ms) select sqlite_version(*)
4483
+  (843.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4484
+  (65.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4485
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
4486
+ Migrating to CreatePosts (20121202111750)
4487
+  (0.1ms) begin transaction
4488
+  (0.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)
4489
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
4490
+  (7.1ms) commit transaction
4491
+ Migrating to CreateUsers (20121202112556)
4492
+  (0.0ms) begin transaction
4493
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4494
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
4495
+  (5.7ms) commit transaction
4496
+ Migrating to CreateCommunities (20130201155147)
4497
+  (0.1ms) begin transaction
4498
+  (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)
4499
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
4500
+  (6.0ms) commit transaction
4501
+ Migrating to CreateInkwellTimelineItems (20130208134948)
4502
+  (0.1ms) begin transaction
4503
+  (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)
4504
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
4505
+  (8.4ms) commit transaction
4506
+ Migrating to AddColumnsToPosts (20130208134949)
4507
+  (0.1ms) begin transaction
4508
+  (0.7ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
4509
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
4510
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
4511
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
4512
+  (6.0ms) commit transaction
4513
+ Migrating to CreateInkwellBlogItems (20130208134950)
4514
+  (0.0ms) begin transaction
4515
+  (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)
4516
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
4517
+  (5.4ms) commit transaction
4518
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
4519
+  (0.0ms) begin transaction
4520
+  (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)
4521
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
4522
+  (5.5ms) commit transaction
4523
+ Migrating to AddColumnsToUsers (20130208134952)
4524
+  (0.0ms) begin transaction
4525
+  (0.3ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
4526
+  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
4527
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
4528
+  (4.3ms) commit transaction
4529
+ Migrating to CreateInkwellComments (20130208134953)
4530
+  (0.0ms) begin transaction
4531
+  (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) 
4532
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
4533
+  (4.2ms) commit transaction
4534
+ Migrating to ChangeTablesForCommunities (20130208134954)
4535
+  (0.0ms) begin transaction
4536
+  (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) 
4537
+  (0.0ms) SELECT * FROM "inkwell_comments"
4538
+  (0.4ms) DROP TABLE "inkwell_comments"
4539
+  (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)
4540
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
4541
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4542
+  (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) 
4543
+  (0.1ms) SELECT * FROM "inkwell_comments"
4544
+  (0.2ms) DROP TABLE "inkwell_comments"
4545
+  (1.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)
4546
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
4547
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4548
+  (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 DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4549
+  (0.1ms) SELECT * FROM "inkwell_comments"
4550
+  (0.2ms) DROP TABLE "inkwell_comments"
4551
+  (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)
4552
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
4553
+  (0.2ms) DROP TABLE "altered_inkwell_comments"
4554
+  (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) 
4555
+  (0.1ms) SELECT * FROM "inkwell_blog_items"
4556
+  (0.3ms) DROP TABLE "inkwell_blog_items"
4557
+  (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)
4558
+  (0.1ms) SELECT * FROM "altered_inkwell_blog_items"
4559
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
4560
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
4561
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
4562
+  (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) 
4563
+  (0.1ms) SELECT * FROM "inkwell_timeline_items"
4564
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
4565
+  (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)
4566
+  (0.1ms) SELECT * FROM "altered_inkwell_timeline_items"
4567
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
4568
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
4569
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
4570
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
4571
+  (0.2ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
4572
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
4573
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
4574
+  (4.9ms) commit transaction
4575
+ Migrating to AddCommunityIdsToPost (20130208134955)
4576
+  (0.0ms) begin transaction
4577
+  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
4578
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
4579
+  (7.8ms) commit transaction
4580
+ Migrating to ChangeIsCommentToItemType (20130210231424)
4581
+  (0.2ms) begin transaction
4582
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
4583
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
4584
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
4585
+  (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))
4586
+  (0.1ms) SELECT * FROM "inkwell_blog_items"
4587
+  (0.1ms) DROP TABLE "inkwell_blog_items"
4588
+  (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)) 
4589
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
4590
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
4591
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
4592
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
4593
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
4594
+  (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)) 
4595
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
4596
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
4597
+  (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))
4598
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
4599
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
4600
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
4601
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
4602
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
4603
+  (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))
4604
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
4605
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
4606
+  (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)) 
4607
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
4608
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
4609
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
4610
+  (4.2ms) commit transaction
4611
+ Migrating to AddOwnerTypeToLines (20130212130848)
4612
+  (0.0ms) begin transaction
4613
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
4614
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
4615
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
4616
+  (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))
4617
+  (0.1ms) SELECT * FROM "inkwell_blog_items"
4618
+  (0.2ms) DROP TABLE "inkwell_blog_items"
4619
+  (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)) 
4620
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
4621
+  (0.3ms) DROP TABLE "altered_inkwell_blog_items"
4622
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
4623
+ SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
4624
+  (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))
4625
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
4626
+  (0.2ms) DROP TABLE "inkwell_favorite_items"
4627
+  (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)) 
4628
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
4629
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
4630
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
4631
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
4632
+  (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))
4633
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
4634
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
4635
+  (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)) 
4636
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
4637
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
4638
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
4639
+  (4.5ms) commit transaction
4640
+ Migrating to RefactorCommentTable (20130213101736)
4641
+  (0.1ms) begin transaction
4642
+  (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) 
4643
+  (0.1ms) SELECT * FROM "inkwell_comments"
4644
+  (0.3ms) DROP TABLE "inkwell_comments"
4645
+  (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)
4646
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
4647
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4648
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
4649
+ SQL (0.1ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
4650
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
4651
+  (5.4ms) commit transaction
4652
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
4653
+  (0.0ms) begin transaction
4654
+  (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))
4655
+  (0.1ms) SELECT * FROM "inkwell_comments"
4656
+  (0.3ms) DROP TABLE "inkwell_comments"
4657
+  (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)) 
4658
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
4659
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4660
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
4661
+  (4.6ms) commit transaction
4662
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
4663
+  (0.0ms) begin transaction
4664
+  (0.3ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'
4665
+  (0.2ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
4666
+  (0.1ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'
4667
+  (0.2ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
4668
+  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'
4669
+  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
4670
+  (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 '[]') 
4671
+  (0.1ms) SELECT * FROM "users"
4672
+  (0.1ms) DROP TABLE "users"
4673
+  (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 '[]')
4674
+  (0.0ms) SELECT * FROM "altered_users"
4675
+  (0.1ms) DROP TABLE "altered_users"
4676
+  (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 '[]') 
4677
+  (0.0ms) SELECT * FROM "users"
4678
+  (0.1ms) DROP TABLE "users"
4679
+  (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 '[]')
4680
+  (0.1ms) SELECT * FROM "altered_users"
4681
+  (0.1ms) DROP TABLE "altered_users"
4682
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')
4683
+  (5.1ms) commit transaction
4684
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4685
+ Connecting to database specified by database.yml
4686
+ Connecting to database specified by database.yml
4687
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4688
+ Migrating to CreatePosts (20121202111750)
4689
+ Migrating to CreateUsers (20121202112556)
4690
+ Migrating to CreateCommunities (20130201155147)
4691
+ Migrating to CreateInkwellTimelineItems (20130208134948)
4692
+ Migrating to AddColumnsToPosts (20130208134949)
4693
+ Migrating to CreateInkwellBlogItems (20130208134950)
4694
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
4695
+ Migrating to AddColumnsToUsers (20130208134952)
4696
+ Migrating to CreateInkwellComments (20130208134953)
4697
+ Migrating to ChangeTablesForCommunities (20130208134954)
4698
+ Migrating to AddCommunityIdsToPost (20130208134955)
4699
+ Migrating to ChangeIsCommentToItemType (20130210231424)
4700
+ Migrating to AddOwnerTypeToLines (20130212130848)
4701
+ Migrating to RefactorCommentTable (20130213101736)
4702
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
4703
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
4704
+ Migrating to RefactorFollowingsRelation (20130227145530)
4705
+  (0.0ms) select sqlite_version(*)
4706
+  (0.0ms) begin transaction
4707
+  (0.2ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer)
4708
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer
4709
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer
4710
+ User Load (0.1ms) SELECT "users".* FROM "users" 
4711
+  (0.2ms) UPDATE "users" SET "following_count" = 1, "follower_count" = 0, "updated_at" = '2013-02-27 14:55:37.798554' WHERE "users"."id" = 1
4712
+ SQL (0.2ms) INSERT INTO "inkwell_followings" ("followed_id", "follower_id") VALUES (?, ?) [["followed_id", 2], ["follower_id", 1]]
4713
+  (0.1ms) UPDATE "users" SET "following_count" = 0, "follower_count" = 1, "updated_at" = '2013-02-27 14:55:37.806528' WHERE "users"."id" = 2
4714
+  (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, "following_count" integer) 
4715
+  (0.0ms) SELECT * FROM "users"
4716
+  (0.1ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followers_ids","followings_ids","communities_info","follower_count","following_count") VALUES (1, NULL, '2013-02-27 14:54:47.564707', '2013-02-27 14:55:37.798554', '[]', '[2]', '[]', 0, 1)
4717
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followers_ids","followings_ids","communities_info","follower_count","following_count") VALUES (2, NULL, '2013-02-27 14:55:03.307966', '2013-02-27 14:55:37.806528', '[1]', '[]', '[]', 1, 0)
4718
+  (0.1ms) DROP TABLE "users"
4719
+  (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, "following_count" integer)
4720
+  (0.0ms) SELECT * FROM "altered_users"
4721
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (1, NULL, '2013-02-27 14:54:47.564707', '2013-02-27 14:55:37.798554', '[2]', '[]', 0, 1)
4722
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (2, NULL, '2013-02-27 14:55:03.307966', '2013-02-27 14:55:37.806528', '[]', '[]', 1, 0)
4723
+  (0.1ms) DROP TABLE "altered_users"
4724
+  (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, "following_count" integer) 
4725
+  (0.1ms) SELECT * FROM "users"
4726
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (1, NULL, '2013-02-27 14:54:47.564707', '2013-02-27 14:55:37.798554', '[2]', '[]', 0, 1)
4727
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","followings_ids","communities_info","follower_count","following_count") VALUES (2, NULL, '2013-02-27 14:55:03.307966', '2013-02-27 14:55:37.806528', '[]', '[]', 1, 0)
4728
+  (0.1ms) DROP TABLE "users"
4729
+  (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, "following_count" integer)
4730
+  (0.0ms) SELECT * FROM "altered_users"
4731
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count") VALUES (1, NULL, '2013-02-27 14:54:47.564707', '2013-02-27 14:55:37.798554', '[]', 0, 1)
4732
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count") VALUES (2, NULL, '2013-02-27 14:55:03.307966', '2013-02-27 14:55:37.806528', '[]', 1, 0)
4733
+  (0.1ms) DROP TABLE "altered_users"
4734
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227145530')
4735
+  (35.6ms) commit transaction
4736
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4737
+ Connecting to database specified by database.yml
4738
+ Connecting to database specified by database.yml
4739
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4740
+  (0.2ms) select sqlite_version(*)
4741
+  (16.6ms) 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, "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') 
4742
+  (3.4ms) 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))
4743
+  (4.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)) 
4744
+  (3.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))
4745
+  (4.6ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) 
4746
+  (4.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))
4747
+  (3.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 '[]') 
4748
+  (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, "communities_info" text DEFAULT '[]', "follower_count" integer, "following_count" integer)
4749
+  (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
4750
+  (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4751
+  (0.1ms) SELECT version FROM "schema_migrations"
4752
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227145530')
4753
+  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
4754
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
4755
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
4756
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
4757
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
4758
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
4759
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
4760
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
4761
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')
4762
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
4763
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
4764
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
4765
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
4766
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
4767
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
4768
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
4769
+ Connecting to database specified by database.yml
4770
+  (0.1ms) select sqlite_version(*)
4771
+  (18.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4772
+  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4773
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
4774
+ Migrating to CreatePosts (20121202111750)
4775
+  (0.0ms) begin transaction
4776
+  (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)
4777
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
4778
+  (5.1ms) commit transaction
4779
+ Migrating to CreateUsers (20121202112556)
4780
+  (0.0ms) begin transaction
4781
+  (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)
4782
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
4783
+  (3.7ms) commit transaction
4784
+ Migrating to CreateCommunities (20130201155147)
4785
+  (0.0ms) begin transaction
4786
+  (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)
4787
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
4788
+  (3.7ms) commit transaction
4789
+ Migrating to CreateInkwellTimelineItems (20130208134948)
4790
+  (0.0ms) begin transaction
4791
+  (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)
4792
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
4793
+  (4.8ms) commit transaction
4794
+ Migrating to AddColumnsToPosts (20130208134949)
4795
+  (0.0ms) begin transaction
4796
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
4797
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
4798
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
4799
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
4800
+  (3.8ms) commit transaction
4801
+ Migrating to CreateInkwellBlogItems (20130208134950)
4802
+  (0.0ms) begin transaction
4803
+  (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)
4804
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
4805
+  (3.9ms) commit transaction
4806
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
4807
+  (0.0ms) begin transaction
4808
+  (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)
4809
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
4810
+  (5.0ms) commit transaction
4811
+ Migrating to AddColumnsToUsers (20130208134952)
4812
+  (0.0ms) begin transaction
4813
+  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
4814
+  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
4815
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
4816
+  (4.7ms) commit transaction
4817
+ Migrating to CreateInkwellComments (20130208134953)
4818
+  (0.0ms) begin transaction
4819
+  (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) 
4820
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
4821
+  (4.3ms) commit transaction
4822
+ Migrating to ChangeTablesForCommunities (20130208134954)
4823
+  (0.0ms) begin transaction
4824
+  (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) 
4825
+  (0.1ms) SELECT * FROM "inkwell_comments"
4826
+  (0.2ms) DROP TABLE "inkwell_comments"
4827
+  (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)
4828
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
4829
+  (0.2ms) DROP TABLE "altered_inkwell_comments"
4830
+  (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) 
4831
+  (0.1ms) SELECT * FROM "inkwell_comments"
4832
+  (0.1ms) DROP TABLE "inkwell_comments"
4833
+  (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)
4834
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
4835
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4836
+  (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) 
4837
+  (0.0ms) SELECT * FROM "inkwell_comments"
4838
+  (0.2ms) DROP TABLE "inkwell_comments"
4839
+  (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)
4840
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
4841
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4842
+  (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) 
4843
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
4844
+  (0.1ms) DROP TABLE "inkwell_blog_items"
4845
+  (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)
4846
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
4847
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
4848
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
4849
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
4850
+  (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) 
4851
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
4852
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
4853
+  (0.0ms) 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)
4854
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
4855
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
4856
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
4857
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
4858
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
4859
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
4860
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
4861
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
4862
+  (5.2ms) commit transaction
4863
+ Migrating to AddCommunityIdsToPost (20130208134955)
4864
+  (0.0ms) begin transaction
4865
+  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
4866
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
4867
+  (5.5ms) commit transaction
4868
+ Migrating to ChangeIsCommentToItemType (20130210231424)
4869
+  (0.0ms) begin transaction
4870
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
4871
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
4872
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
4873
+  (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))
4874
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
4875
+  (0.1ms) DROP TABLE "inkwell_blog_items"
4876
+  (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)) 
4877
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
4878
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
4879
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
4880
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
4881
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
4882
+  (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)) 
4883
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
4884
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
4885
+  (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))
4886
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
4887
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
4888
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
4889
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
4890
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
4891
+  (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))
4892
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
4893
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
4894
+  (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)) 
4895
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
4896
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
4897
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
4898
+  (4.2ms) commit transaction
4899
+ Migrating to AddOwnerTypeToLines (20130212130848)
4900
+  (0.0ms) begin transaction
4901
+  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
4902
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
4903
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
4904
+  (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))
4905
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
4906
+  (0.1ms) DROP TABLE "inkwell_blog_items"
4907
+  (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)) 
4908
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
4909
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
4910
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
4911
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
4912
+  (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))
4913
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
4914
+  (0.2ms) DROP TABLE "inkwell_favorite_items"
4915
+  (0.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)) 
4916
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
4917
+  (0.2ms) DROP TABLE "altered_inkwell_favorite_items"
4918
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
4919
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
4920
+  (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))
4921
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
4922
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
4923
+  (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)) 
4924
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
4925
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
4926
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
4927
+  (3.6ms) commit transaction
4928
+ Migrating to RefactorCommentTable (20130213101736)
4929
+  (0.0ms) begin transaction
4930
+  (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) 
4931
+  (0.1ms) SELECT * FROM "inkwell_comments"
4932
+  (0.2ms) DROP TABLE "inkwell_comments"
4933
+  (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)
4934
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
4935
+  (0.2ms) DROP TABLE "altered_inkwell_comments"
4936
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
4937
+ SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
4938
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
4939
+  (5.2ms) commit transaction
4940
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
4941
+  (0.1ms) begin transaction
4942
+  (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))
4943
+  (0.1ms) SELECT * FROM "inkwell_comments"
4944
+  (0.2ms) DROP TABLE "inkwell_comments"
4945
+  (0.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)) 
4946
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
4947
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
4948
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
4949
+  (3.8ms) commit transaction
4950
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
4951
+  (0.0ms) begin transaction
4952
+  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'
4953
+  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
4954
+  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'
4955
+  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
4956
+  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'
4957
+  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
4958
+  (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 '[]') 
4959
+  (0.0ms) SELECT * FROM "users"
4960
+  (0.1ms) DROP TABLE "users"
4961
+  (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 '[]')
4962
+  (0.0ms) SELECT * FROM "altered_users"
4963
+  (0.1ms) DROP TABLE "altered_users"
4964
+  (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 '[]') 
4965
+  (0.0ms) SELECT * FROM "users"
4966
+  (0.1ms) DROP TABLE "users"
4967
+  (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 '[]')
4968
+  (0.1ms) SELECT * FROM "altered_users"
4969
+  (0.1ms) DROP TABLE "altered_users"
4970
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')
4971
+  (4.1ms) commit transaction
4972
+ Migrating to RefactorFollowingsRelation (20130227151303)
4973
+  (0.0ms) begin transaction
4974
+  (0.2ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer)
4975
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0
4976
+  (0.2ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
4977
+ User Load (0.1ms) SELECT "users".* FROM "users" 
4978
+  (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 '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)
4979
+  (0.0ms) SELECT * FROM "users"
4980
+  (0.3ms) DROP TABLE "users"
4981
+  (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, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0) 
4982
+  (0.0ms) SELECT * FROM "altered_users"
4983
+  (0.1ms) DROP TABLE "altered_users"
4984
+  (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)
4985
+  (0.0ms) SELECT * FROM "users"
4986
+  (0.1ms) DROP TABLE "users"
4987
+  (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) 
4988
+  (0.0ms) SELECT * FROM "altered_users"
4989
+  (0.1ms) DROP TABLE "altered_users"
4990
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227151303')
4991
+  (6.1ms) commit transaction
4992
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
4993
+ Connecting to database specified by database.yml
4994
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4995
+  (0.1ms) select sqlite_version(*)
4996
+  (15.2ms) 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, "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') 
4997
+  (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))
4998
+  (4.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)) 
4999
+  (3.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))
5000
+  (4.6ms) CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) 
5001
+  (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))
5002
+  (3.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 '[]') 
5003
+  (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, "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)
5004
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5005
+  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5006
+  (0.0ms) SELECT version FROM "schema_migrations"
5007
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227151303')
5008
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
5009
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
5010
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
5011
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
5012
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
5013
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
5014
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
5015
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
5016
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')
5017
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
5018
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
5019
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
5020
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
5021
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
5022
+  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
5023
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
5024
+ Connecting to database specified by database.yml
5025
+  (0.9ms) select sqlite_version(*)
5026
+  (10.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5027
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5028
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5029
+ Migrating to CreatePosts (20121202111750)
5030
+  (0.0ms) begin transaction
5031
+  (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)
5032
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
5033
+  (5.0ms) commit transaction
5034
+ Migrating to CreateUsers (20121202112556)
5035
+  (0.1ms) begin transaction
5036
+  (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)
5037
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
5038
+  (4.0ms) commit transaction
5039
+ Migrating to CreateCommunities (20130201155147)
5040
+  (0.0ms) begin transaction
5041
+  (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)
5042
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
5043
+  (4.0ms) commit transaction
5044
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5045
+  (0.0ms) begin transaction
5046
+  (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)
5047
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
5048
+  (5.1ms) commit transaction
5049
+ Migrating to AddColumnsToPosts (20130208134949)
5050
+  (0.0ms) begin transaction
5051
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
5052
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
5053
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
5054
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
5055
+  (3.4ms) commit transaction
5056
+ Migrating to CreateInkwellBlogItems (20130208134950)
5057
+  (0.0ms) begin transaction
5058
+  (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)
5059
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
5060
+  (3.6ms) commit transaction
5061
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5062
+  (0.0ms) begin transaction
5063
+  (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)
5064
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
5065
+  (5.3ms) commit transaction
5066
+ Migrating to AddColumnsToUsers (20130208134952)
5067
+  (0.0ms) begin transaction
5068
+  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
5069
+  (0.0ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
5070
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
5071
+  (4.9ms) commit transaction
5072
+ Migrating to CreateInkwellComments (20130208134953)
5073
+  (0.0ms) begin transaction
5074
+  (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) 
5075
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
5076
+  (3.9ms) commit transaction
5077
+ Migrating to ChangeTablesForCommunities (20130208134954)
5078
+  (0.0ms) begin transaction
5079
+  (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) 
5080
+  (0.1ms) SELECT * FROM "inkwell_comments"
5081
+  (0.2ms) DROP TABLE "inkwell_comments"
5082
+  (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)
5083
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
5084
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5085
+  (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) 
5086
+  (0.0ms) SELECT * FROM "inkwell_comments"
5087
+  (0.1ms) DROP TABLE "inkwell_comments"
5088
+  (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)
5089
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5090
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5091
+  (0.0ms) 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) 
5092
+  (0.0ms) SELECT * FROM "inkwell_comments"
5093
+  (0.1ms) DROP TABLE "inkwell_comments"
5094
+  (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)
5095
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5096
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5097
+  (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) 
5098
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5099
+  (0.2ms) DROP TABLE "inkwell_blog_items"
5100
+  (0.2ms) 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)
5101
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5102
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5103
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
5104
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
5105
+  (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) 
5106
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5107
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
5108
+  (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)
5109
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5110
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5111
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
5112
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
5113
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
5114
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
5115
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
5116
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
5117
+  (5.3ms) commit transaction
5118
+ Migrating to AddCommunityIdsToPost (20130208134955)
5119
+  (0.0ms) begin transaction
5120
+  (0.4ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
5121
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
5122
+  (4.8ms) commit transaction
5123
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5124
+  (0.0ms) begin transaction
5125
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
5126
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
5127
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
5128
+  (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))
5129
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5130
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5131
+  (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)) 
5132
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5133
+  (0.2ms) DROP TABLE "altered_inkwell_blog_items"
5134
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
5135
+ SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
5136
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
5137
+  (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)) 
5138
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
5139
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
5140
+  (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))
5141
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
5142
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
5143
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
5144
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
5145
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
5146
+  (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))
5147
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5148
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
5149
+  (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)) 
5150
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5151
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5152
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
5153
+  (3.2ms) commit transaction
5154
+ Migrating to AddOwnerTypeToLines (20130212130848)
5155
+  (0.0ms) begin transaction
5156
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
5157
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
5158
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
5159
+  (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))
5160
+  (0.1ms) SELECT * FROM "inkwell_blog_items"
5161
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5162
+  (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)) 
5163
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5164
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5165
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
5166
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
5167
+  (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))
5168
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
5169
+  (0.2ms) DROP TABLE "inkwell_favorite_items"
5170
+  (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)) 
5171
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
5172
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
5173
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
5174
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
5175
+  (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))
5176
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5177
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
5178
+  (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)) 
5179
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5180
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5181
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
5182
+  (3.5ms) commit transaction
5183
+ Migrating to RefactorCommentTable (20130213101736)
5184
+  (0.0ms) begin transaction
5185
+  (0.0ms) 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) 
5186
+  (0.0ms) SELECT * FROM "inkwell_comments"
5187
+  (0.2ms) DROP TABLE "inkwell_comments"
5188
+  (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)
5189
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5190
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5191
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
5192
+ SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
5193
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
5194
+  (4.6ms) commit transaction
5195
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
5196
+  (0.0ms) begin transaction
5197
+  (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))
5198
+  (0.1ms) SELECT * FROM "inkwell_comments"
5199
+  (0.3ms) DROP TABLE "inkwell_comments"
5200
+  (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)) 
5201
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5202
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5203
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
5204
+  (3.6ms) commit transaction
5205
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
5206
+  (0.0ms) begin transaction
5207
+  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'
5208
+  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
5209
+  (0.3ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'
5210
+  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
5211
+  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'
5212
+  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
5213
+  (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 '[]') 
5214
+  (0.0ms) SELECT * FROM "users"
5215
+  (0.2ms) DROP TABLE "users"
5216
+  (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 '[]')
5217
+  (0.0ms) SELECT * FROM "altered_users"
5218
+  (0.1ms) DROP TABLE "altered_users"
5219
+  (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 '[]') 
5220
+  (0.0ms) SELECT * FROM "users"
5221
+  (0.1ms) DROP TABLE "users"
5222
+  (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 '[]')
5223
+  (0.1ms) SELECT * FROM "altered_users"
5224
+  (0.1ms) DROP TABLE "altered_users"
5225
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')
5226
+  (4.4ms) commit transaction
5227
+ Migrating to RefactorFollowingsRelation (20130227154519)
5228
+  (0.0ms) begin transaction
5229
+  (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)
5230
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0
5231
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
5232
+ User Load (0.1ms) SELECT "users".* FROM "users" 
5233
+  (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)
5234
+  (0.0ms) SELECT * FROM "users"
5235
+  (0.2ms) DROP TABLE "users"
5236
+  (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) 
5237
+  (0.0ms) SELECT * FROM "altered_users"
5238
+  (0.1ms) DROP TABLE "altered_users"
5239
+  (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)
5240
+  (0.0ms) SELECT * FROM "users"
5241
+  (0.1ms) DROP TABLE "users"
5242
+  (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) 
5243
+  (0.0ms) SELECT * FROM "altered_users"
5244
+  (0.1ms) DROP TABLE "altered_users"
5245
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
5246
+  (5.5ms) commit transaction
5247
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5248
+ Connecting to database specified by database.yml
5249
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5250
+  (0.2ms) select sqlite_version(*)
5251
+  (10.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, "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') 
5252
+  (4.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))
5253
+  (4.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)) 
5254
+  (3.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))
5255
+  (9.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) 
5256
+  (3.6ms) 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))
5257
+  (5.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 '[]') 
5258
+  (6.6ms) 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)
5259
+  (4.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5260
+  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5261
+  (0.0ms) SELECT version FROM "schema_migrations"
5262
+  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')
5263
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
5264
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
5265
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
5266
+  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
5267
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
5268
+  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
5269
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
5270
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
5271
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')
5272
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
5273
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
5274
+  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
5275
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
5276
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
5277
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
5278
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
5279
+ Connecting to database specified by database.yml
5280
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5281
+ Migrating to CreatePosts (20121202111750)
5282
+ Migrating to CreateUsers (20121202112556)
5283
+ Migrating to CreateCommunities (20130201155147)
5284
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5285
+ Migrating to AddColumnsToPosts (20130208134949)
5286
+ Migrating to CreateInkwellBlogItems (20130208134950)
5287
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5288
+ Migrating to AddColumnsToUsers (20130208134952)
5289
+ Migrating to CreateInkwellComments (20130208134953)
5290
+ Migrating to ChangeTablesForCommunities (20130208134954)
5291
+ Migrating to AddCommunityIdsToPost (20130208134955)
5292
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5293
+ Migrating to AddOwnerTypeToLines (20130212130848)
5294
+ Migrating to RefactorCommentTable (20130213101736)
5295
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
5296
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
5297
+ Migrating to RefactorFollowingsRelation (20130227154519)
5298
+ Migrating to RefactorUserCommunityRelation (20130228113859)
5299
+  (0.1ms) select sqlite_version(*)
5300
+  (0.0ms) begin transaction
5301
+  (0.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)
5302
+  (0.1ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0
5303
+  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
5304
+  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0
5305
+  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
5306
+ Community Load (0.1ms) SELECT "communities".* FROM "communities" 
5307
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228113859')
5308
+  (20.3ms) commit transaction
5309
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5310
+ Connecting to database specified by database.yml
5311
+  (0.1ms) select sqlite_version(*)
5312
+  (13.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5313
+  (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5314
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5315
+ Migrating to CreatePosts (20121202111750)
5316
+  (0.0ms) begin transaction
5317
+  (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)
5318
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
5319
+  (5.9ms) commit transaction
5320
+ Migrating to CreateUsers (20121202112556)
5321
+  (0.0ms) begin transaction
5322
+  (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)
5323
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
5324
+  (4.4ms) commit transaction
5325
+ Migrating to CreateCommunities (20130201155147)
5326
+  (0.0ms) begin transaction
5327
+  (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)
5328
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
5329
+  (3.6ms) commit transaction
5330
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5331
+  (0.0ms) begin transaction
5332
+  (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)
5333
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
5334
+  (5.7ms) commit transaction
5335
+ Migrating to AddColumnsToPosts (20130208134949)
5336
+  (0.0ms) begin transaction
5337
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
5338
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
5339
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
5340
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
5341
+  (4.6ms) commit transaction
5342
+ Migrating to CreateInkwellBlogItems (20130208134950)
5343
+  (0.0ms) begin transaction
5344
+  (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)
5345
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
5346
+  (4.4ms) commit transaction
5347
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5348
+  (0.0ms) begin transaction
5349
+  (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)
5350
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
5351
+  (5.6ms) commit transaction
5352
+ Migrating to AddColumnsToUsers (20130208134952)
5353
+  (0.0ms) begin transaction
5354
+  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
5355
+  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
5356
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
5357
+  (4.4ms) commit transaction
5358
+ Migrating to CreateInkwellComments (20130208134953)
5359
+  (0.0ms) begin transaction
5360
+  (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, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5361
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
5362
+  (4.3ms) commit transaction
5363
+ Migrating to ChangeTablesForCommunities (20130208134954)
5364
+  (0.0ms) begin transaction
5365
+  (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) 
5366
+  (0.1ms) SELECT * FROM "inkwell_comments"
5367
+  (0.3ms) DROP TABLE "inkwell_comments"
5368
+  (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)
5369
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
5370
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5371
+  (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) 
5372
+  (0.0ms) SELECT * FROM "inkwell_comments"
5373
+  (0.2ms) DROP TABLE "inkwell_comments"
5374
+  (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)
5375
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
5376
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5377
+  (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) 
5378
+  (0.0ms) SELECT * FROM "inkwell_comments"
5379
+  (0.1ms) DROP TABLE "inkwell_comments"
5380
+  (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)
5381
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
5382
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5383
+  (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) 
5384
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5385
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5386
+  (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)
5387
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5388
+  (0.2ms) DROP TABLE "altered_inkwell_blog_items"
5389
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
5390
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
5391
+  (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) 
5392
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5393
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
5394
+  (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)
5395
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5396
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5397
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
5398
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
5399
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
5400
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
5401
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
5402
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
5403
+  (4.5ms) commit transaction
5404
+ Migrating to AddCommunityIdsToPost (20130208134955)
5405
+  (0.0ms) begin transaction
5406
+  (0.3ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
5407
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
5408
+  (5.1ms) commit transaction
5409
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5410
+  (0.0ms) begin transaction
5411
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
5412
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
5413
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
5414
+  (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))
5415
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5416
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5417
+  (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)) 
5418
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5419
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5420
+  (0.3ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
5421
+ SQL (0.1ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
5422
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
5423
+  (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)) 
5424
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
5425
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
5426
+  (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))
5427
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
5428
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
5429
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
5430
+ SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
5431
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
5432
+  (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))
5433
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5434
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
5435
+  (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)) 
5436
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5437
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5438
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
5439
+  (4.5ms) commit transaction
5440
+ Migrating to AddOwnerTypeToLines (20130212130848)
5441
+  (0.0ms) begin transaction
5442
+  (0.4ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
5443
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
5444
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
5445
+  (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))
5446
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5447
+  (0.2ms) DROP TABLE "inkwell_blog_items"
5448
+  (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)) 
5449
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5450
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5451
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
5452
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
5453
+  (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))
5454
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
5455
+  (0.2ms) DROP TABLE "inkwell_favorite_items"
5456
+  (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)) 
5457
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
5458
+  (0.2ms) DROP TABLE "altered_inkwell_favorite_items"
5459
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
5460
+ SQL (0.1ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
5461
+  (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))
5462
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5463
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
5464
+  (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)) 
5465
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5466
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5467
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
5468
+  (5.0ms) commit transaction
5469
+ Migrating to RefactorCommentTable (20130213101736)
5470
+  (0.0ms) begin transaction
5471
+  (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) 
5472
+  (0.0ms) SELECT * FROM "inkwell_comments"
5473
+  (0.2ms) DROP TABLE "inkwell_comments"
5474
+  (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)
5475
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5476
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5477
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
5478
+ SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
5479
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
5480
+  (5.6ms) commit transaction
5481
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
5482
+  (0.0ms) begin transaction
5483
+  (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))
5484
+  (0.1ms) SELECT * FROM "inkwell_comments"
5485
+  (0.2ms) DROP TABLE "inkwell_comments"
5486
+  (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)) 
5487
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5488
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5489
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
5490
+  (4.6ms) commit transaction
5491
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
5492
+  (0.0ms) begin transaction
5493
+  (0.2ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'
5494
+  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
5495
+  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'
5496
+  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
5497
+  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'
5498
+  (0.1ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
5499
+  (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 '[]') 
5500
+  (0.0ms) SELECT * FROM "users"
5501
+  (0.1ms) DROP TABLE "users"
5502
+  (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 '[]')
5503
+  (0.0ms) SELECT * FROM "altered_users"
5504
+  (0.1ms) DROP TABLE "altered_users"
5505
+  (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 '[]') 
5506
+  (0.0ms) SELECT * FROM "users"
5507
+  (0.1ms) DROP TABLE "users"
5508
+  (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 '[]')
5509
+  (0.1ms) SELECT * FROM "altered_users"
5510
+  (0.1ms) DROP TABLE "altered_users"
5511
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')
5512
+  (4.5ms) commit transaction
5513
+ Migrating to RefactorFollowingsRelation (20130227154519)
5514
+  (0.0ms) begin transaction
5515
+  (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)
5516
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0
5517
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
5518
+ User Load (0.1ms) SELECT "users".* FROM "users" 
5519
+  (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 '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)
5520
+  (0.0ms) SELECT * FROM "users"
5521
+  (0.2ms) DROP TABLE "users"
5522
+  (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) 
5523
+  (0.1ms) SELECT * FROM "altered_users"
5524
+  (0.1ms) DROP TABLE "altered_users"
5525
+  (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)
5526
+  (0.0ms) SELECT * FROM "users"
5527
+  (0.1ms) DROP TABLE "users"
5528
+  (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) 
5529
+  (0.0ms) SELECT * FROM "altered_users"
5530
+  (0.1ms) DROP TABLE "altered_users"
5531
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
5532
+  (5.1ms) commit transaction
5533
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5534
+ Connecting to database specified by database.yml
5535
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5536
+ Migrating to CreatePosts (20121202111750)
5537
+ Migrating to CreateUsers (20121202112556)
5538
+ Migrating to CreateCommunities (20130201155147)
5539
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5540
+ Migrating to AddColumnsToPosts (20130208134949)
5541
+ Migrating to CreateInkwellBlogItems (20130208134950)
5542
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5543
+ Migrating to AddColumnsToUsers (20130208134952)
5544
+ Migrating to CreateInkwellComments (20130208134953)
5545
+ Migrating to ChangeTablesForCommunities (20130208134954)
5546
+ Migrating to AddCommunityIdsToPost (20130208134955)
5547
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5548
+ Migrating to AddOwnerTypeToLines (20130212130848)
5549
+ Migrating to RefactorCommentTable (20130213101736)
5550
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
5551
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
5552
+ Migrating to RefactorFollowingsRelation (20130227154519)
5553
+ Migrating to RefactorUserCommunityRelation (20130228114538)
5554
+  (0.0ms) select sqlite_version(*)
5555
+  (0.0ms) begin transaction
5556
+  (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)
5557
+  (0.2ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0
5558
+  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
5559
+  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0
5560
+  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
5561
+  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0
5562
+ Community Load (0.0ms) SELECT "communities".* FROM "communities"
5563
+ User Load (0.0ms) SELECT "users".* FROM "users" 
5564
+  (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)
5565
+  (0.1ms) SELECT * FROM "communities"
5566
+  (0.2ms) DROP TABLE "communities"
5567
+  (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) 
5568
+  (0.0ms) SELECT * FROM "altered_communities"
5569
+  (0.1ms) DROP TABLE "altered_communities"
5570
+  (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)
5571
+  (0.1ms) SELECT * FROM "communities"
5572
+  (0.1ms) DROP TABLE "communities"
5573
+  (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) 
5574
+  (0.0ms) SELECT * FROM "altered_communities"
5575
+  (0.1ms) DROP TABLE "altered_communities"
5576
+  (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)
5577
+  (0.0ms) SELECT * FROM "communities"
5578
+  (0.2ms) DROP TABLE "communities"
5579
+  (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) 
5580
+  (0.1ms) SELECT * FROM "altered_communities"
5581
+  (0.1ms) DROP TABLE "altered_communities"
5582
+  (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)
5583
+  (0.2ms) SELECT * FROM "communities"
5584
+  (0.1ms) DROP TABLE "communities"
5585
+  (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) 
5586
+  (0.1ms) SELECT * FROM "altered_communities"
5587
+  (0.1ms) DROP TABLE "altered_communities"
5588
+  (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)
5589
+  (0.0ms) SELECT * FROM "users"
5590
+  (0.1ms) DROP TABLE "users"
5591
+  (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) 
5592
+  (0.0ms) SELECT * FROM "altered_users"
5593
+  (0.1ms) DROP TABLE "altered_users"
5594
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228114538')
5595
+  (322.1ms) commit transaction
5596
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5597
+ Connecting to database specified by database.yml
5598
+  (0.7ms) select sqlite_version(*)
5599
+  (20.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5600
+  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5601
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5602
+ Migrating to CreatePosts (20121202111750)
5603
+  (0.0ms) begin transaction
5604
+  (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)
5605
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
5606
+  (4.6ms) commit transaction
5607
+ Migrating to CreateUsers (20121202112556)
5608
+  (0.0ms) begin transaction
5609
+  (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)
5610
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
5611
+  (3.5ms) commit transaction
5612
+ Migrating to CreateCommunities (20130201155147)
5613
+  (0.0ms) begin transaction
5614
+  (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)
5615
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
5616
+  (3.9ms) commit transaction
5617
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5618
+  (0.1ms) begin transaction
5619
+  (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)
5620
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
5621
+  (5.2ms) commit transaction
5622
+ Migrating to AddColumnsToPosts (20130208134949)
5623
+  (0.0ms) begin transaction
5624
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
5625
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
5626
+  (0.6ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
5627
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
5628
+  (4.5ms) commit transaction
5629
+ Migrating to CreateInkwellBlogItems (20130208134950)
5630
+  (0.0ms) begin transaction
5631
+  (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)
5632
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
5633
+  (5.2ms) commit transaction
5634
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5635
+  (0.0ms) begin transaction
5636
+  (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)
5637
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
5638
+  (5.7ms) commit transaction
5639
+ Migrating to AddColumnsToUsers (20130208134952)
5640
+  (0.0ms) begin transaction
5641
+  (0.2ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
5642
+  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
5643
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
5644
+  (4.1ms) commit transaction
5645
+ Migrating to CreateInkwellComments (20130208134953)
5646
+  (0.0ms) begin transaction
5647
+  (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) 
5648
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
5649
+  (5.3ms) commit transaction
5650
+ Migrating to ChangeTablesForCommunities (20130208134954)
5651
+  (0.0ms) begin transaction
5652
+  (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) 
5653
+  (0.1ms) SELECT * FROM "inkwell_comments"
5654
+  (0.2ms) DROP TABLE "inkwell_comments"
5655
+  (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)
5656
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5657
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5658
+  (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) 
5659
+  (0.0ms) SELECT * FROM "inkwell_comments"
5660
+  (0.1ms) DROP TABLE "inkwell_comments"
5661
+  (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 DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5662
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5663
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5664
+  (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) 
5665
+  (0.0ms) SELECT * FROM "inkwell_comments"
5666
+  (0.1ms) DROP TABLE "inkwell_comments"
5667
+  (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)
5668
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5669
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5670
+  (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) 
5671
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5672
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5673
+  (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)
5674
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5675
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5676
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
5677
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
5678
+  (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) 
5679
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
5680
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
5681
+  (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)
5682
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5683
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5684
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
5685
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
5686
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
5687
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
5688
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
5689
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
5690
+  (4.8ms) commit transaction
5691
+ Migrating to AddCommunityIdsToPost (20130208134955)
5692
+  (0.0ms) begin transaction
5693
+  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
5694
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
5695
+  (3.3ms) commit transaction
5696
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5697
+  (0.0ms) begin transaction
5698
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
5699
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
5700
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
5701
+  (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))
5702
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5703
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5704
+  (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)) 
5705
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5706
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5707
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
5708
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
5709
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
5710
+  (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)) 
5711
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
5712
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
5713
+  (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))
5714
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
5715
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
5716
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
5717
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
5718
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
5719
+  (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))
5720
+  (0.1ms) SELECT * FROM "inkwell_timeline_items"
5721
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
5722
+  (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)) 
5723
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5724
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5725
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
5726
+  (4.0ms) commit transaction
5727
+ Migrating to AddOwnerTypeToLines (20130212130848)
5728
+  (0.0ms) begin transaction
5729
+  (0.3ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
5730
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
5731
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
5732
+  (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))
5733
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
5734
+  (0.1ms) DROP TABLE "inkwell_blog_items"
5735
+  (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)) 
5736
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
5737
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
5738
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
5739
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
5740
+  (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))
5741
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
5742
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
5743
+  (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)) 
5744
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
5745
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
5746
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
5747
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
5748
+  (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))
5749
+  (0.1ms) SELECT * FROM "inkwell_timeline_items"
5750
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
5751
+  (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)) 
5752
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
5753
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
5754
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
5755
+  (4.0ms) commit transaction
5756
+ Migrating to RefactorCommentTable (20130213101736)
5757
+  (0.0ms) begin transaction
5758
+  (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) 
5759
+  (0.1ms) SELECT * FROM "inkwell_comments"
5760
+  (0.2ms) DROP TABLE "inkwell_comments"
5761
+  (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)
5762
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5763
+  (0.2ms) DROP TABLE "altered_inkwell_comments"
5764
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
5765
+ SQL (0.0ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
5766
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
5767
+  (3.9ms) commit transaction
5768
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
5769
+  (0.0ms) begin transaction
5770
+  (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))
5771
+  (0.1ms) SELECT * FROM "inkwell_comments"
5772
+  (0.2ms) DROP TABLE "inkwell_comments"
5773
+  (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)) 
5774
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
5775
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
5776
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
5777
+  (4.0ms) commit transaction
5778
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
5779
+  (0.0ms) begin transaction
5780
+  (0.4ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'
5781
+  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
5782
+  (0.2ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'
5783
+  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
5784
+  (0.1ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'
5785
+  (0.2ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
5786
+  (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 '[]') 
5787
+  (0.1ms) SELECT * FROM "users"
5788
+  (0.1ms) DROP TABLE "users"
5789
+  (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 '[]')
5790
+  (0.1ms) SELECT * FROM "altered_users"
5791
+  (0.1ms) DROP TABLE "altered_users"
5792
+  (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 '[]') 
5793
+  (0.0ms) SELECT * FROM "users"
5794
+  (0.1ms) DROP TABLE "users"
5795
+  (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 '[]')
5796
+  (0.1ms) SELECT * FROM "altered_users"
5797
+  (0.1ms) DROP TABLE "altered_users"
5798
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')
5799
+  (4.4ms) commit transaction
5800
+ Migrating to RefactorFollowingsRelation (20130227154519)
5801
+  (0.2ms) begin transaction
5802
+  (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)
5803
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0
5804
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
5805
+ User Load (0.1ms) SELECT "users".* FROM "users" 
5806
+  (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)
5807
+  (0.0ms) SELECT * FROM "users"
5808
+  (0.2ms) DROP TABLE "users"
5809
+  (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) 
5810
+  (0.0ms) SELECT * FROM "altered_users"
5811
+  (0.1ms) DROP TABLE "altered_users"
5812
+  (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)
5813
+  (0.0ms) SELECT * FROM "users"
5814
+  (0.1ms) DROP TABLE "users"
5815
+  (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) 
5816
+  (0.0ms) SELECT * FROM "altered_users"
5817
+  (0.1ms) DROP TABLE "altered_users"
5818
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
5819
+  (10.2ms) commit transaction
5820
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
5821
+ Connecting to database specified by database.yml
5822
+ Connecting to database specified by database.yml
5823
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5824
+ Migrating to CreatePosts (20121202111750)
5825
+ Migrating to CreateUsers (20121202112556)
5826
+ Migrating to CreateCommunities (20130201155147)
5827
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5828
+ Migrating to AddColumnsToPosts (20130208134949)
5829
+ Migrating to CreateInkwellBlogItems (20130208134950)
5830
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5831
+ Migrating to AddColumnsToUsers (20130208134952)
5832
+ Migrating to CreateInkwellComments (20130208134953)
5833
+ Migrating to ChangeTablesForCommunities (20130208134954)
5834
+ Migrating to AddCommunityIdsToPost (20130208134955)
5835
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5836
+ Migrating to AddOwnerTypeToLines (20130212130848)
5837
+ Migrating to RefactorCommentTable (20130213101736)
5838
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
5839
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
5840
+ Migrating to RefactorFollowingsRelation (20130227154519)
5841
+ Migrating to RefactorUserCommunityRelation (20130228115224)
5842
+  (0.0ms) select sqlite_version(*)
5843
+  (0.1ms) begin transaction
5844
+  (0.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)
5845
+  (0.1ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0
5846
+  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
5847
+  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0
5848
+  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
5849
+  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0
5850
+ Community Load (0.1ms) SELECT "communities".* FROM "communities"
5851
+ SQL (0.6ms) INSERT INTO "inkwell_community_users" ("admin_level", "community_id", "created_at", "is_admin", "muted", "updated_at", "user_access", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["admin_level", nil], ["community_id", 1], ["created_at", Thu, 28 Feb 2013 11:52:30 UTC +00:00], ["is_admin", false], ["muted", false], ["updated_at", Thu, 28 Feb 2013 11:52:30 UTC +00:00], ["user_access", "r"], ["user_id", 1]]
5852
+ SQL (0.1ms) INSERT INTO "inkwell_community_users" ("admin_level", "community_id", "created_at", "is_admin", "muted", "updated_at", "user_access", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["admin_level", nil], ["community_id", 1], ["created_at", Thu, 28 Feb 2013 11:52:30 UTC +00:00], ["is_admin", false], ["muted", false], ["updated_at", Thu, 28 Feb 2013 11:52:30 UTC +00:00], ["user_access", "r"], ["user_id", 2]]
5853
+ SQL (0.1ms) INSERT INTO "inkwell_community_users" ("admin_level", "community_id", "created_at", "is_admin", "muted", "updated_at", "user_access", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["admin_level", nil], ["community_id", 1], ["created_at", Thu, 28 Feb 2013 11:52:30 UTC +00:00], ["is_admin", false], ["muted", false], ["updated_at", Thu, 28 Feb 2013 11:52:30 UTC +00:00], ["user_access", "r"], ["user_id", 3]]
5854
+ SQL (0.2ms) UPDATE "inkwell_community_users" SET "user_access" = 'w' WHERE "inkwell_community_users"."user_id" = 1 AND "inkwell_community_users"."community_id" = 1
5855
+ SQL (0.1ms) UPDATE "inkwell_community_users" SET "user_access" = 'w' WHERE "inkwell_community_users"."user_id" = 2 AND "inkwell_community_users"."community_id" = 1
5856
+ SQL (0.1ms) UPDATE "inkwell_community_users" SET "is_admin" = 't', "admin_level" = 0 WHERE "inkwell_community_users"."user_id" = 1 AND "inkwell_community_users"."community_id" = 1
5857
+ SQL (0.1ms) UPDATE "inkwell_community_users" SET "muted" = 't' WHERE "inkwell_community_users"."user_id" = 2 AND "inkwell_community_users"."community_id" = 1
5858
+  (0.1ms) UPDATE "communities" SET "user_count" = 3, "writer_count" = 2, "admin_count" = 1, "muted_count" = 1, "updated_at" = '2013-02-28 11:52:30.964949' WHERE "communities"."id" = 1
5859
+ User Load (0.1ms) SELECT "users".* FROM "users" 
5860
+  (0.1ms) UPDATE "users" SET "community_count" = 1, "updated_at" = '2013-02-28 11:52:30.977564' WHERE "users"."id" = 1
5861
+  (0.1ms) UPDATE "users" SET "community_count" = 1, "updated_at" = '2013-02-28 11:52:30.978610' WHERE "users"."id" = 2
5862
+  (0.1ms) UPDATE "users" SET "community_count" = 1, "updated_at" = '2013-02-28 11:52:30.979143' WHERE "users"."id" = 3
5863
+  (0.9ms) 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) 
5864
+  (0.1ms) SELECT * FROM "communities"
5865
+  (0.2ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","users_ids","admins_info","owner_id","default_user_access","writers_ids","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', '[1,2,3]', '[{"admin_id":1,"admin_level":0}]', 1, 'w', '[1,2]', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5866
+  (0.2ms) DROP TABLE "communities"
5867
+  (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) 
5868
+  (0.1ms) SELECT * FROM "altered_communities"
5869
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","admins_info","owner_id","default_user_access","writers_ids","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', '[{"admin_id":1,"admin_level":0}]', 1, 'w', '[1,2]', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5870
+  (0.1ms) DROP TABLE "altered_communities"
5871
+  (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) 
5872
+  (0.1ms) SELECT * FROM "communities"
5873
+  (0.0ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","admins_info","owner_id","default_user_access","writers_ids","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', '[{"admin_id":1,"admin_level":0}]', 1, 'w', '[1,2]', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5874
+  (0.1ms) DROP TABLE "communities"
5875
+  (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) 
5876
+  (0.1ms) SELECT * FROM "altered_communities"
5877
+  (0.1ms) INSERT INTO "communities" ("id","name","created_at","updated_at","admins_info","owner_id","default_user_access","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', '[{"admin_id":1,"admin_level":0}]', 1, 'w', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5878
+  (0.1ms) DROP TABLE "altered_communities"
5879
+  (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) 
5880
+  (0.1ms) SELECT * FROM "communities"
5881
+  (0.0ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","admins_info","owner_id","default_user_access","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', '[{"admin_id":1,"admin_level":0}]', 1, 'w', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5882
+  (0.1ms) DROP TABLE "communities"
5883
+  (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', "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) 
5884
+  (0.1ms) SELECT * FROM "altered_communities"
5885
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5886
+  (0.1ms) DROP TABLE "altered_communities"
5887
+  (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) 
5888
+  (0.0ms) SELECT * FROM "communities"
5889
+  (0.0ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","muted_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[2]', '[]', 't', 3, 2, 1, 1)
5890
+  (0.1ms) DROP TABLE "communities"
5891
+  (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) 
5892
+  (0.2ms) SELECT * FROM "altered_communities"
5893
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[]', 't', 3, 2, 1, 1)
5894
+  (0.1ms) DROP TABLE "altered_communities"
5895
+  (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) 
5896
+  (0.1ms) SELECT * FROM "users"
5897
+  (0.1ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count","community_count") VALUES (1, NULL, '2013-02-28 11:46:33.864801', '2013-02-28 11:52:30.977564', '[{"c_id":1,"a":"w"}]', 0, 0, 1)
5898
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count","community_count") VALUES (2, NULL, '2013-02-28 11:46:39.575791', '2013-02-28 11:52:30.978610', '[{"c_id":1,"a":"w"}]', 0, 0, 1)
5899
+  (0.0ms) INSERT INTO "altered_users" ("id","nick","created_at","updated_at","communities_info","follower_count","following_count","community_count") VALUES (3, NULL, '2013-02-28 11:50:51.438143', '2013-02-28 11:52:30.979143', '[{"c_id":1,"a":"r"}]', 0, 0, 1)
5900
+  (0.1ms) DROP TABLE "users"
5901
+  (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) 
5902
+  (0.1ms) SELECT * FROM "altered_users"
5903
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","follower_count","following_count","community_count") VALUES (1, NULL, '2013-02-28 11:46:33.864801', '2013-02-28 11:52:30.977564', 0, 0, 1)
5904
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","follower_count","following_count","community_count") VALUES (2, NULL, '2013-02-28 11:46:39.575791', '2013-02-28 11:52:30.978610', 0, 0, 1)
5905
+  (0.0ms) INSERT INTO "users" ("id","nick","created_at","updated_at","follower_count","following_count","community_count") VALUES (3, NULL, '2013-02-28 11:50:51.438143', '2013-02-28 11:52:30.979143', 0, 0, 1)
5906
+  (0.1ms) DROP TABLE "altered_users"
5907
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')
5908
+  (39.3ms) commit transaction
5909
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5910
+ Connecting to database specified by database.yml
5911
+ Connecting to database specified by database.yml
5912
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5913
+  (0.1ms) select sqlite_version(*)
5914
+  (10.6ms) 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) 
5915
+  (3.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))
5916
+  (4.3ms) 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)) 
5917
+  (3.5ms) 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)
5918
+  (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)) 
5919
+  (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)
5920
+  (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)) 
5921
+  (5.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 '[]')
5922
+  (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) 
5923
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5924
+  (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5925
+  (0.0ms) SELECT version FROM "schema_migrations"
5926
+  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')
5927
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
5928
+  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
5929
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
5930
+  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')
5931
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
5932
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
5933
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
5934
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
5935
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
5936
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')
5937
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
5938
+  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
5939
+  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
5940
+  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
5941
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
5942
+  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
5943
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
5944
+ Connecting to database specified by database.yml
5945
+ Connecting to database specified by database.yml
5946
+ Connecting to database specified by database.yml
5947
+ Connecting to database specified by database.yml
5948
+ Connecting to database specified by database.yml
5949
+ SQLite3::SQLException: no such column: communities.user_id: SELECT "communities".* FROM "communities" WHERE "communities"."user_id" = 1
5950
+ Connecting to database specified by database.yml
5951
+ Connecting to database specified by database.yml
5952
+ SQLite3::SQLException: no such table: communities_users: SELECT "communities".* FROM "communities" INNER JOIN "communities_users" ON "communities"."id" = "communities_users"."community_id" WHERE "communities_users"."user_id" = 1
5953
+ Connecting to database specified by database.yml
5954
+ Connecting to database specified by database.yml
5955
+ Connecting to database specified by database.yml
5956
+ Connecting to database specified by database.yml
5957
+ Connecting to database specified by database.yml
5958
+ Connecting to database specified by database.yml
5959
+ Connecting to database specified by database.yml
5960
+ SQLite3::SQLException: no such column: inkwell_community_users.communities_id: SELECT "communities".* FROM "communities" INNER JOIN "inkwell_community_users" ON "communities"."id" = "inkwell_community_users"."communities_id" WHERE "inkwell_community_users"."user_id" = 1
5961
+ Connecting to database specified by database.yml
5962
+ SQLite3::SQLException: no such column: inkwell_community_users.communities_id: SELECT "communities".* FROM "communities" INNER JOIN "inkwell_community_users" ON "communities"."id" = "inkwell_community_users"."communities_id" WHERE "inkwell_community_users"."user_id" = 1
5963
+ Connecting to database specified by database.yml
5964
+ SQLite3::SQLException: no such column: inkwell_community_users.communities_id: SELECT "communities".* FROM "communities" INNER JOIN "inkwell_community_users" ON "communities"."id" = "inkwell_community_users"."communities_id" WHERE "inkwell_community_users"."community_id" = 1
5965
+ Connecting to database specified by database.yml
5966
+ SQLite3::SQLException: no such column: inkwell_community_users.communities_id: SELECT "communities".* FROM "communities" INNER JOIN "inkwell_community_users" ON "communities"."id" = "inkwell_community_users"."communities_id" WHERE "inkwell_community_users"."community_id" = 1
5967
+ Connecting to database specified by database.yml
5968
+ Connecting to database specified by database.yml
5969
+ Connecting to database specified by database.yml
5970
+ Connecting to database specified by database.yml
5971
+ Connecting to database specified by database.yml
5972
+ SQLite3::SQLException: no such column: inkwell_community_users.communities_id: SELECT "communities".* FROM "communities" INNER JOIN "inkwell_community_users" ON "communities"."id" = "inkwell_community_users"."communities_id" WHERE "inkwell_community_users"."user_id" = 1
5973
+ Connecting to database specified by database.yml
5974
+ Connecting to database specified by database.yml
5975
+ Connecting to database specified by database.yml
5976
+ Connecting to database specified by database.yml
5977
+ Connecting to database specified by database.yml
5978
+ Connecting to database specified by database.yml
5979
+ Connecting to database specified by database.yml
5980
+ Connecting to database specified by database.yml
5981
+ Connecting to database specified by database.yml
5982
+ Connecting to database specified by database.yml
5983
+ Connecting to database specified by database.yml
5984
+ Connecting to database specified by database.yml
5985
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
5986
+ Migrating to CreatePosts (20121202111750)
5987
+ Migrating to CreateUsers (20121202112556)
5988
+ Migrating to CreateCommunities (20130201155147)
5989
+ Migrating to CreateInkwellTimelineItems (20130208134948)
5990
+ Migrating to AddColumnsToPosts (20130208134949)
5991
+ Migrating to CreateInkwellBlogItems (20130208134950)
5992
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
5993
+ Migrating to AddColumnsToUsers (20130208134952)
5994
+ Migrating to CreateInkwellComments (20130208134953)
5995
+ Migrating to ChangeTablesForCommunities (20130208134954)
5996
+ Migrating to AddCommunityIdsToPost (20130208134955)
5997
+ Migrating to ChangeIsCommentToItemType (20130210231424)
5998
+ Migrating to AddOwnerTypeToLines (20130212130848)
5999
+ Migrating to RefactorCommentTable (20130213101736)
6000
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
6001
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
6002
+ Migrating to RefactorFollowingsRelation (20130227154519)
6003
+ Migrating to RefactorUserCommunityRelation (20130228115224)
6004
+ Migrating to RefactorInvitesBansMutes (20130312084409)
6005
+  (0.0ms) select sqlite_version(*)
6006
+  (0.0ms) begin transaction
6007
+  (1.1ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0
6008
+  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0
6009
+  (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)
6010
+  (0.1ms) SELECT * FROM "communities"
6011
+  (0.1ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[]', 't', 3, 2, 1, 1, 0, 0)
6012
+  (0.2ms) DROP TABLE "communities"
6013
+  (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)
6014
+  (0.1ms) SELECT * FROM "altered_communities"
6015
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[]', 't', 3, 2, 1, 1, 0, 0)
6016
+  (0.1ms) DROP TABLE "altered_communities"
6017
+  (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)
6018
+  (0.1ms) SELECT * FROM "communities"
6019
+  (0.0ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[]', 't', 3, 2, 1, 1, 0, 0)
6020
+  (0.1ms) DROP TABLE "communities"
6021
+  (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)
6022
+  (0.1ms) SELECT * FROM "altered_communities"
6023
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[]', 't', 3, 2, 1, 1, 0, 0)
6024
+  (0.1ms) DROP TABLE "altered_communities"
6025
+  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'
6026
+  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'
6027
+  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f'
6028
+ Community Load (0.1ms) SELECT "communities".* FROM "communities" 
6029
+  (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 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)
6030
+  (0.1ms) SELECT * FROM "communities"
6031
+  (0.0ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","owner_id","default_user_access","banned_ids","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', '[]', 't', 3, 2, 1, 1, 0, 0)
6032
+  (0.1ms) DROP TABLE "communities"
6033
+  (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 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)
6034
+  (0.1ms) SELECT * FROM "altered_communities"
6035
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","owner_id","default_user_access","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', 't', 3, 2, 1, 1, 0, 0)
6036
+  (0.1ms) DROP TABLE "altered_communities"
6037
+  (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 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)
6038
+  (0.0ms) SELECT * FROM "communities"
6039
+  (0.0ms) INSERT INTO "altered_communities" ("id","name","created_at","updated_at","owner_id","default_user_access","invitations_uids","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', '[]', 't', 3, 2, 1, 1, 0, 0)
6040
+  (0.1ms) DROP TABLE "communities"
6041
+  (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 0, "admin_count" integer DEFAULT 1, "muted_count" integer DEFAULT 0, "banned_count" integer DEFAULT 0, "invitation_count" integer DEFAULT 0)
6042
+  (0.1ms) SELECT * FROM "altered_communities"
6043
+  (0.0ms) INSERT INTO "communities" ("id","name","created_at","updated_at","owner_id","default_user_access","public","user_count","writer_count","admin_count","muted_count","banned_count","invitation_count") VALUES (1, NULL, '2013-02-28 11:47:54.297430', '2013-02-28 11:52:30.964949', 1, 'w', 't', 3, 2, 1, 1, 0, 0)
6044
+  (0.2ms) DROP TABLE "altered_communities"
6045
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084409')
6046
+  (22.5ms) commit transaction
6047
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6048
+ Connecting to database specified by database.yml
6049
+  (0.1ms) select sqlite_version(*)
6050
+  (37.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6051
+  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6052
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6053
+ Migrating to CreatePosts (20121202111750)
6054
+  (0.0ms) begin transaction
6055
+  (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)
6056
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')
6057
+  (6.6ms) commit transaction
6058
+ Migrating to CreateUsers (20121202112556)
6059
+  (0.0ms) begin transaction
6060
+  (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)
6061
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')
6062
+  (8.1ms) commit transaction
6063
+ Migrating to CreateCommunities (20130201155147)
6064
+  (0.0ms) begin transaction
6065
+  (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)
6066
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')
6067
+  (5.1ms) commit transaction
6068
+ Migrating to CreateInkwellTimelineItems (20130208134948)
6069
+  (0.0ms) begin transaction
6070
+  (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)
6071
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')
6072
+  (5.1ms) commit transaction
6073
+ Migrating to AddColumnsToPosts (20130208134949)
6074
+  (0.0ms) begin transaction
6075
+  (0.2ms) ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
6076
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'
6077
+  (0.1ms) ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
6078
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')
6079
+  (3.9ms) commit transaction
6080
+ Migrating to CreateInkwellBlogItems (20130208134950)
6081
+  (0.0ms) begin transaction
6082
+  (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)
6083
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')
6084
+  (6.0ms) commit transaction
6085
+ Migrating to CreateInkwellFavoriteItems (20130208134951)
6086
+  (0.0ms) begin transaction
6087
+  (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)
6088
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')
6089
+  (7.2ms) commit transaction
6090
+ Migrating to AddColumnsToUsers (20130208134952)
6091
+  (0.0ms) begin transaction
6092
+  (0.3ms) ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
6093
+  (0.1ms) ALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'
6094
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
6095
+  (5.1ms) commit transaction
6096
+ Migrating to CreateInkwellComments (20130208134953)
6097
+  (0.0ms) begin transaction
6098
+  (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) 
6099
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
6100
+  (6.3ms) commit transaction
6101
+ Migrating to ChangeTablesForCommunities (20130208134954)
6102
+  (0.0ms) begin transaction
6103
+  (0.0ms) 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) 
6104
+  (0.0ms) SELECT * FROM "inkwell_comments"
6105
+  (0.2ms) DROP TABLE "inkwell_comments"
6106
+  (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)
6107
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
6108
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
6109
+  (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) 
6110
+  (0.0ms) SELECT * FROM "inkwell_comments"
6111
+  (0.1ms) DROP TABLE "inkwell_comments"
6112
+  (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)
6113
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
6114
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
6115
+  (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) 
6116
+  (0.0ms) SELECT * FROM "inkwell_comments"
6117
+  (0.1ms) DROP TABLE "inkwell_comments"
6118
+  (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 DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
6119
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
6120
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
6121
+  (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) 
6122
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
6123
+  (0.1ms) DROP TABLE "inkwell_blog_items"
6124
+  (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)
6125
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
6126
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
6127
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "owner_id" integer
6128
+  (0.1ms) ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
6129
+  (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) 
6130
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
6131
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
6132
+  (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)
6133
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
6134
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
6135
+  (0.1ms) ALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'
6136
+  (0.1ms) ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
6137
+  (0.1ms) ALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'
6138
+  (0.1ms) ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
6139
+  (0.1ms) ALTER TABLE "communities" ADD "owner_id" integer
6140
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
6141
+  (6.8ms) commit transaction
6142
+ Migrating to AddCommunityIdsToPost (20130208134955)
6143
+  (0.0ms) begin transaction
6144
+  (0.2ms) ALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'
6145
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
6146
+  (7.4ms) commit transaction
6147
+ Migrating to ChangeIsCommentToItemType (20130210231424)
6148
+  (0.0ms) begin transaction
6149
+  (0.2ms) ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
6150
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
6151
+ SQL (0.0ms) UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
6152
+  (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))
6153
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
6154
+  (0.1ms) DROP TABLE "inkwell_blog_items"
6155
+  (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)) 
6156
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
6157
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
6158
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
6159
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'
6160
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
6161
+  (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)) 
6162
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
6163
+  (0.2ms) DROP TABLE "inkwell_favorite_items"
6164
+  (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))
6165
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
6166
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
6167
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)
6168
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
6169
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'
6170
+  (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))
6171
+  (0.1ms) SELECT * FROM "inkwell_timeline_items"
6172
+  (0.1ms) DROP TABLE "inkwell_timeline_items"
6173
+  (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)) 
6174
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
6175
+  (0.2ms) DROP TABLE "altered_inkwell_timeline_items"
6176
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
6177
+  (4.8ms) commit transaction
6178
+ Migrating to AddOwnerTypeToLines (20130212130848)
6179
+  (0.0ms) begin transaction
6180
+  (0.4ms) ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
6181
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
6182
+ SQL (0.1ms) UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
6183
+  (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))
6184
+  (0.0ms) SELECT * FROM "inkwell_blog_items"
6185
+  (0.1ms) DROP TABLE "inkwell_blog_items"
6186
+  (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)) 
6187
+  (0.0ms) SELECT * FROM "altered_inkwell_blog_items"
6188
+  (0.1ms) DROP TABLE "altered_inkwell_blog_items"
6189
+  (0.1ms) ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
6190
+ SQL (0.0ms) UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
6191
+  (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))
6192
+  (0.0ms) SELECT * FROM "inkwell_favorite_items"
6193
+  (0.1ms) DROP TABLE "inkwell_favorite_items"
6194
+  (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)) 
6195
+  (0.0ms) SELECT * FROM "altered_inkwell_favorite_items"
6196
+  (0.1ms) DROP TABLE "altered_inkwell_favorite_items"
6197
+  (0.1ms) ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
6198
+ SQL (0.0ms) UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
6199
+  (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))
6200
+  (0.0ms) SELECT * FROM "inkwell_timeline_items"
6201
+  (0.2ms) DROP TABLE "inkwell_timeline_items"
6202
+  (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)) 
6203
+  (0.0ms) SELECT * FROM "altered_inkwell_timeline_items"
6204
+  (0.1ms) DROP TABLE "altered_inkwell_timeline_items"
6205
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
6206
+  (9.1ms) commit transaction
6207
+ Migrating to RefactorCommentTable (20130213101736)
6208
+  (0.1ms) begin transaction
6209
+  (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) 
6210
+  (0.1ms) SELECT * FROM "inkwell_comments"
6211
+  (0.4ms) DROP TABLE "inkwell_comments"
6212
+  (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)
6213
+  (0.1ms) SELECT * FROM "altered_inkwell_comments"
6214
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
6215
+  (0.1ms) ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
6216
+ SQL (0.1ms) UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
6217
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')
6218
+  (5.0ms) commit transaction
6219
+ Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
6220
+  (0.0ms) begin transaction
6221
+  (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))
6222
+  (0.1ms) SELECT * FROM "inkwell_comments"
6223
+  (0.2ms) DROP TABLE "inkwell_comments"
6224
+  (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)) 
6225
+  (0.0ms) SELECT * FROM "altered_inkwell_comments"
6226
+  (0.1ms) DROP TABLE "altered_inkwell_comments"
6227
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
6228
+  (5.4ms) commit transaction
6229
+ Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
6230
+  (0.0ms) begin transaction
6231
+  (0.3ms) ALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'
6232
+  (0.1ms) ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
6233
+  (0.1ms) ALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'
6234
+  (0.1ms) ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
6235
+  (1.2ms) ALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'
6236
+  (0.2ms) ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
6237
+  (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 '[]') 
6238
+  (0.0ms) SELECT * FROM "users"
6239
+  (0.2ms) DROP TABLE "users"
6240
+  (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 '[]')
6241
+  (0.1ms) SELECT * FROM "altered_users"
6242
+  (0.1ms) DROP TABLE "altered_users"
6243
+  (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 '[]') 
6244
+  (0.0ms) SELECT * FROM "users"
6245
+  (0.1ms) DROP TABLE "users"
6246
+  (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 '[]')
6247
+  (0.0ms) SELECT * FROM "altered_users"
6248
+  (0.1ms) DROP TABLE "altered_users"
6249
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')
6250
+  (4.4ms) commit transaction
6251
+ Migrating to RefactorFollowingsRelation (20130227154519)
6252
+  (0.1ms) begin transaction
6253
+  (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)
6254
+  (0.1ms) ALTER TABLE "users" ADD "follower_count" integer DEFAULT 0
6255
+  (0.1ms) ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
6256
+ User Load (0.1ms) SELECT "users".* FROM "users" 
6257
+  (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)
6258
+  (0.1ms) SELECT * FROM "users"
6259
+  (0.2ms) DROP TABLE "users"
6260
+  (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) 
6261
+  (0.0ms) SELECT * FROM "altered_users"
6262
+  (0.1ms) DROP TABLE "altered_users"
6263
+  (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, "followings_ids" text DEFAULT '[]', "communities_info" text DEFAULT '[]', "follower_count" integer DEFAULT 0, "following_count" integer DEFAULT 0)
6264
+  (0.0ms) SELECT * FROM "users"
6265
+  (0.1ms) DROP TABLE "users"
6266
+  (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) 
6267
+  (0.0ms) SELECT * FROM "altered_users"
6268
+  (0.2ms) DROP TABLE "altered_users"
6269
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
6270
+  (6.6ms) commit transaction
6271
+ Migrating to RefactorUserCommunityRelation (20130228115224)
6272
+  (0.0ms) begin transaction
6273
+  (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) 
6274
+  (0.1ms) ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0
6275
+  (0.1ms) ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
6276
+  (0.1ms) ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0
6277
+  (0.1ms) ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
6278
+  (0.1ms) ALTER TABLE "users" ADD "community_count" integer DEFAULT 0
6279
+ Community Load (0.1ms) SELECT "communities".* FROM "communities" 
6280
+ User Load (0.0ms) SELECT "users".* FROM "users"
6281
+  (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) 
6282
+  (0.1ms) SELECT * FROM "communities"
6283
+  (0.2ms) DROP TABLE "communities"
6284
+  (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)
6285
+  (0.1ms) SELECT * FROM "altered_communities"
6286
+  (0.1ms) DROP TABLE "altered_communities"
6287
+  (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) 
6288
+  (0.1ms) SELECT * FROM "communities"
6289
+  (0.1ms) DROP TABLE "communities"
6290
+  (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)
6291
+  (0.1ms) SELECT * FROM "altered_communities"
6292
+  (0.1ms) DROP TABLE "altered_communities"
6293
+  (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) 
6294
+  (0.1ms) SELECT * FROM "communities"
6295
+  (0.1ms) DROP TABLE "communities"
6296
+  (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)
6297
+  (0.7ms) SELECT * FROM "altered_communities"
6298
+  (0.1ms) DROP TABLE "altered_communities"
6299
+  (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) 
6300
+  (0.1ms) SELECT * FROM "communities"
6301
+  (0.1ms) DROP TABLE "communities"
6302
+  (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)
6303
+  (0.0ms) SELECT * FROM "altered_communities"
6304
+  (0.1ms) DROP TABLE "altered_communities"
6305
+  (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) 
6306
+  (0.0ms) SELECT * FROM "users"
6307
+  (0.1ms) DROP TABLE "users"
6308
+  (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)
6309
+  (0.0ms) SELECT * FROM "altered_users"
6310
+  (0.1ms) DROP TABLE "altered_users"
6311
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')
6312
+  (5.7ms) commit transaction
6313
+ Migrating to RefactorInvitesBansMutes (20130312084529)
6314
+  (0.0ms) begin transaction
6315
+  (0.2ms) ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0
6316
+  (0.1ms) ALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0
6317
+  (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)
6318
+  (0.0ms) SELECT * FROM "communities"
6319
+  (0.2ms) DROP TABLE "communities"
6320
+  (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) 
6321
+  (0.0ms) SELECT * FROM "altered_communities"
6322
+  (0.1ms) DROP TABLE "altered_communities"
6323
+  (0.6ms) 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)
6324
+  (0.0ms) SELECT * FROM "communities"
6325
+  (0.1ms) DROP TABLE "communities"
6326
+  (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) 
6327
+  (0.1ms) SELECT * FROM "altered_communities"
6328
+  (0.0ms) DROP TABLE "altered_communities"
6329
+  (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)
6330
+  (0.0ms) SELECT * FROM "communities"
6331
+  (0.1ms) DROP TABLE "communities"
6332
+  (1.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', "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) 
6333
+  (0.0ms) SELECT * FROM "altered_communities"
6334
+  (0.1ms) DROP TABLE "altered_communities"
6335
+  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'
6336
+  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'
6337
+  (0.1ms) ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f'
6338
+ Community Load (0.1ms) SELECT "communities".* FROM "communities" 
6339
+  (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)
6340
+  (0.0ms) SELECT * FROM "communities"
6341
+  (0.1ms) DROP TABLE "communities"
6342
+  (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) 
6343
+  (0.0ms) SELECT * FROM "altered_communities"
6344
+  (0.1ms) DROP TABLE "altered_communities"
6345
+  (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)
6346
+  (0.1ms) SELECT * FROM "communities"
6347
+  (0.1ms) DROP TABLE "communities"
6348
+  (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) 
6349
+  (0.1ms) SELECT * FROM "altered_communities"
6350
+  (0.1ms) DROP TABLE "altered_communities"
6351
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')
6352
+  (5.8ms) commit transaction
6353
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6354
+ Connecting to database specified by database.yml
6355
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6356
+  (0.1ms) select sqlite_version(*)
6357
+  (375.8ms) 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) 
6358
+  (6.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))
6359
+  (8.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)) 
6360
+  (5.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')
6361
+  (7.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)) 
6362
+  (6.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)
6363
+  (6.0ms) 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)) 
6364
+  (8.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, "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 '[]')
6365
+  (6.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) 
6366
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6367
+  (7.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6368
+  (0.1ms) SELECT version FROM "schema_migrations"
6369
+  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312084529')
6370
+  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
6371
+  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
6372
+  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
6373
+  (5.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')
6374
+  (5.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
6375
+  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
6376
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
6377
+  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
6378
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
6379
+  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228115224')
6380
+  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')
6381
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
6382
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
6383
+  (5.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
6384
+  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
6385
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
6386
+  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
6387
+  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
6388
+ Connecting to database specified by database.yml