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.
- data/app/models/inkwell/community_user.rb +15 -0
- data/app/models/inkwell/following.rb +8 -0
- data/db/migrate/20130212130888_refactor_followings_relation.rb +27 -0
- data/db/migrate/20130212130898_refactor_user_community_relation.rb +72 -0
- data/db/migrate/20130212130908_refactor_invites_bans_mutes.rb +48 -0
- data/lib/acts_as_inkwell_community/base.rb +185 -180
- data/lib/acts_as_inkwell_user/base.rb +72 -30
- data/lib/common/base.rb +21 -0
- data/lib/inkwell/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130227154519_refactor_followings_relation.inkwell.rb +28 -0
- data/test/dummy/db/migrate/20130228115224_refactor_user_community_relation.inkwell.rb +73 -0
- data/test/dummy/db/migrate/20130312084529_refactor_invites_bans_mutes.inkwell.rb +49 -0
- data/test/dummy/db/schema.rb +33 -12
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1986 -0
- data/test/dummy/log/test.log +0 -0
- data/test/dummy/spec/functional/community_spec.rb +513 -196
- data/test/dummy/spec/functional/following_spec.rb +55 -7
- data/test/dummy_without_community/db/development.sqlite3 +0 -0
- data/test/dummy_without_community/db/migrate/20130313083915_refactor_followings_relation.inkwell.rb +28 -0
- data/test/dummy_without_community/db/migrate/20130313083916_refactor_user_community_relation.inkwell.rb +73 -0
- data/test/dummy_without_community/db/migrate/20130313083917_refactor_invites_bans_mutes.inkwell.rb +49 -0
- data/test/dummy_without_community/db/schema.rb +12 -5
- data/test/dummy_without_community/db/test.sqlite3 +0 -0
- data/test/dummy_without_community/log/development.log +78 -0
- data/test/dummy_without_community/log/test.log +12652 -0
- data/test/dummy_without_community/spec/functional/following_spec.rb +20 -7
- 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 72 | 
            -
                      result <<  | 
| 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 | 
            -
                     | 
| 138 | 
            -
                    raise " | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 184 | 
            -
                    raise " | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 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 | 
            -
                     | 
| 377 | 
            -
                    return false  | 
| 378 | 
            -
                    return false  | 
| 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 | 
| 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 | 
| 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
         | 
    
        data/lib/common/base.rb
    CHANGED
    
    | @@ -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'
         | 
    
        data/lib/inkwell/version.rb
    CHANGED
    
    
| Binary file | 
| @@ -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
         | 
    
        data/test/dummy/db/schema.rb
    CHANGED
    
    | @@ -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 =>  | 
| 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", | 
| 90 | 
            -
                t.datetime "updated_at", | 
| 91 | 
            -
                t. | 
| 92 | 
            -
                t. | 
| 93 | 
            -
                t. | 
| 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
         | 
    
        data/test/dummy/db/test.sqlite3
    CHANGED
    
    | Binary file | 
| @@ -4400,3 +4400,1989 @@ Connecting to database specified by database.yml | |
| 4400 4400 | 
             
              [1m[35m (3.8ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
         | 
| 4401 4401 | 
             
              [1m[36m (3.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
         | 
| 4402 4402 | 
             
              [1m[35m (3.6ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.0ms)[0m  select sqlite_version(*)
         | 
| 4425 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 4426 | 
            +
              [1m[35m (0.4ms)[0m  CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) 
         | 
| 4427 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer[0m
         | 
| 4428 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer
         | 
| 4429 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 4430 | 
            +
              [1m[35m (0.2ms)[0m  rollback transaction
         | 
| 4431 | 
            +
            Connecting to database specified by database.yml
         | 
| 4432 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.0ms)[0m  select sqlite_version(*)
         | 
| 4451 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4452 | 
            +
              [1m[35m (0.3ms)[0m  CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) 
         | 
| 4453 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer[0m
         | 
| 4454 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer
         | 
| 4455 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 4456 | 
            +
              [1m[35mSQL (1.5ms)[0m  INSERT INTO "inkwell_followings" ("followed_id", "follower_id") VALUES (?, ?)  [["followed_id", 2], ["follower_id", 1]]
         | 
| 4457 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 4458 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "users"
         | 
| 4459 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4460 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (16.3ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4462 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4464 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4466 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4467 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4468 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 4469 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4470 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4472 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4474 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4476 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4477 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130227145215')[0m
         | 
| 4478 | 
            +
              [1m[35m (19.7ms)[0m  commit transaction
         | 
| 4479 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 4480 | 
            +
            Connecting to database specified by database.yml
         | 
| 4481 | 
            +
            Connecting to database specified by database.yml
         | 
| 4482 | 
            +
              [1m[36m (0.1ms)[0m  [1mselect sqlite_version(*)[0m
         | 
| 4483 | 
            +
              [1m[35m (843.0ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 4484 | 
            +
              [1m[36m (65.9ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 4485 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 4486 | 
            +
            Migrating to CreatePosts (20121202111750)
         | 
| 4487 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 4488 | 
            +
              [1m[35m (0.6ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
         | 
| 4490 | 
            +
              [1m[35m (7.1ms)[0m  commit transaction
         | 
| 4491 | 
            +
            Migrating to CreateUsers (20121202112556)
         | 
| 4492 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4493 | 
            +
              [1m[35m (0.5ms)[0m  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 4494 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
         | 
| 4495 | 
            +
              [1m[35m (5.7ms)[0m  commit transaction
         | 
| 4496 | 
            +
            Migrating to CreateCommunities (20130201155147)
         | 
| 4497 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 4498 | 
            +
              [1m[35m (0.5ms)[0m  CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 4499 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
         | 
| 4500 | 
            +
              [1m[35m (6.0ms)[0m  commit transaction
         | 
| 4501 | 
            +
            Migrating to CreateInkwellTimelineItems (20130208134948)
         | 
| 4502 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 4503 | 
            +
              [1m[35m (0.4ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
         | 
| 4505 | 
            +
              [1m[35m (8.4ms)[0m  commit transaction
         | 
| 4506 | 
            +
            Migrating to AddColumnsToPosts (20130208134949)
         | 
| 4507 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 4508 | 
            +
              [1m[35m (0.7ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
         | 
| 4509 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
         | 
| 4510 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
         | 
| 4511 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
         | 
| 4512 | 
            +
              [1m[35m (6.0ms)[0m  commit transaction
         | 
| 4513 | 
            +
            Migrating to CreateInkwellBlogItems (20130208134950)
         | 
| 4514 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4515 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
         | 
| 4517 | 
            +
              [1m[35m (5.4ms)[0m  commit transaction
         | 
| 4518 | 
            +
            Migrating to CreateInkwellFavoriteItems (20130208134951)
         | 
| 4519 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4520 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
         | 
| 4522 | 
            +
              [1m[35m (5.5ms)[0m  commit transaction
         | 
| 4523 | 
            +
            Migrating to AddColumnsToUsers (20130208134952)
         | 
| 4524 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4525 | 
            +
              [1m[35m (0.3ms)[0m  ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
         | 
| 4526 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
         | 
| 4527 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
         | 
| 4528 | 
            +
              [1m[36m (4.3ms)[0m  [1mcommit transaction[0m
         | 
| 4529 | 
            +
            Migrating to CreateInkwellComments (20130208134953)
         | 
| 4530 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4531 | 
            +
              [1m[36m (0.4ms)[0m  [1mCREATE 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) [0m
         | 
| 4532 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
         | 
| 4533 | 
            +
              [1m[36m (4.2ms)[0m  [1mcommit transaction[0m
         | 
| 4534 | 
            +
            Migrating to ChangeTablesForCommunities (20130208134954)
         | 
| 4535 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4536 | 
            +
              [1m[36m (0.3ms)[0m  [1mCREATE 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) [0m
         | 
| 4537 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4538 | 
            +
              [1m[36m (0.4ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4539 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4541 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4542 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4543 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4544 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4545 | 
            +
              [1m[35m (1.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4547 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4548 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 4549 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4550 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4551 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4553 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4554 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4555 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_blog_items"
         | 
| 4556 | 
            +
              [1m[36m (0.3ms)[0m  [1mDROP TABLE "inkwell_blog_items"[0m
         | 
| 4557 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_blog_items"[0m
         | 
| 4559 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_blog_items"
         | 
| 4560 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
         | 
| 4561 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
         | 
| 4562 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4563 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_timeline_items"
         | 
| 4564 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_timeline_items"[0m
         | 
| 4565 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
         | 
| 4567 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_timeline_items"
         | 
| 4568 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
         | 
| 4569 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
         | 
| 4570 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 4571 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
         | 
| 4572 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "owner_id" integer[0m
         | 
| 4573 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
         | 
| 4574 | 
            +
              [1m[36m (4.9ms)[0m  [1mcommit transaction[0m
         | 
| 4575 | 
            +
            Migrating to AddCommunityIdsToPost (20130208134955)
         | 
| 4576 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4577 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 4578 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
         | 
| 4579 | 
            +
              [1m[36m (7.8ms)[0m  [1mcommit transaction[0m
         | 
| 4580 | 
            +
            Migrating to ChangeIsCommentToItemType (20130210231424)
         | 
| 4581 | 
            +
              [1m[35m (0.2ms)[0m  begin transaction
         | 
| 4582 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
         | 
| 4583 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
         | 
| 4584 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
         | 
| 4585 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 4587 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 4588 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4589 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 4590 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 4591 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
         | 
| 4592 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
         | 
| 4593 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
         | 
| 4594 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4595 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_favorite_items"
         | 
| 4596 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_favorite_items"[0m
         | 
| 4597 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
         | 
| 4599 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_favorite_items"
         | 
| 4600 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
         | 
| 4601 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
         | 
| 4602 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
         | 
| 4603 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 4605 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 4606 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4607 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 4608 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 4609 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
         | 
| 4610 | 
            +
              [1m[36m (4.2ms)[0m  [1mcommit transaction[0m
         | 
| 4611 | 
            +
            Migrating to AddOwnerTypeToLines (20130212130848)
         | 
| 4612 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4613 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
         | 
| 4614 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
         | 
| 4615 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
         | 
| 4616 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 4618 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 4619 | 
            +
              [1m[36m (0.3ms)[0m  [1mCREATE 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)) [0m
         | 
| 4620 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 4621 | 
            +
              [1m[36m (0.3ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 4622 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
         | 
| 4623 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
         | 
| 4624 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_favorite_items"[0m
         | 
| 4626 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_favorite_items"
         | 
| 4627 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4628 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_favorite_items"
         | 
| 4629 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_favorite_items"[0m
         | 
| 4630 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
         | 
| 4631 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
         | 
| 4632 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 4634 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 4635 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4636 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 4637 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 4638 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
         | 
| 4639 | 
            +
              [1m[36m (4.5ms)[0m  [1mcommit transaction[0m
         | 
| 4640 | 
            +
            Migrating to RefactorCommentTable (20130213101736)
         | 
| 4641 | 
            +
              [1m[35m (0.1ms)[0m  begin transaction
         | 
| 4642 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 4643 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4644 | 
            +
              [1m[36m (0.3ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4645 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4647 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4648 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
         | 
| 4649 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
         | 
| 4650 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
         | 
| 4651 | 
            +
              [1m[35m (5.4ms)[0m  commit transaction
         | 
| 4652 | 
            +
            Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
         | 
| 4653 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4654 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_comments"[0m
         | 
| 4656 | 
            +
              [1m[35m (0.3ms)[0m  DROP TABLE "inkwell_comments"
         | 
| 4657 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4658 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_comments"
         | 
| 4659 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_comments"[0m
         | 
| 4660 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
         | 
| 4661 | 
            +
              [1m[36m (4.6ms)[0m  [1mcommit transaction[0m
         | 
| 4662 | 
            +
            Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
         | 
| 4663 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4664 | 
            +
              [1m[36m (0.3ms)[0m  [1mALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'[0m
         | 
| 4665 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
         | 
| 4666 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'[0m
         | 
| 4667 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
         | 
| 4668 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'[0m
         | 
| 4669 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
         | 
| 4670 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 4671 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "users"
         | 
| 4672 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4673 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4675 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4676 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 4677 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 4678 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4679 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4681 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4682 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')[0m
         | 
| 4683 | 
            +
              [1m[35m (5.1ms)[0m  commit transaction
         | 
| 4684 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 4685 | 
            +
            Connecting to database specified by database.yml
         | 
| 4686 | 
            +
            Connecting to database specified by database.yml
         | 
| 4687 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.0ms)[0m  select sqlite_version(*)
         | 
| 4706 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4707 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) 
         | 
| 4708 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer[0m
         | 
| 4709 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer
         | 
| 4710 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 4711 | 
            +
              [1m[35m (0.2ms)[0m  UPDATE "users" SET "following_count" = 1, "follower_count" = 0, "updated_at" = '2013-02-27 14:55:37.798554' WHERE "users"."id" = 1
         | 
| 4712 | 
            +
              [1m[36mSQL (0.2ms)[0m  [1mINSERT INTO "inkwell_followings" ("followed_id", "follower_id") VALUES (?, ?)[0m  [["followed_id", 2], ["follower_id", 1]]
         | 
| 4713 | 
            +
              [1m[35m (0.1ms)[0m  UPDATE "users" SET "following_count" = 0, "follower_count" = 1, "updated_at" = '2013-02-27 14:55:37.806528' WHERE "users"."id" = 2
         | 
| 4714 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 4715 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 4716 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT 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)[0m
         | 
| 4717 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4719 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4721 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4723 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4724 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4725 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "users"
         | 
| 4726 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4727 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4729 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4731 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 4733 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4734 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130227145530')[0m
         | 
| 4735 | 
            +
              [1m[35m (35.6ms)[0m  commit transaction
         | 
| 4736 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 4737 | 
            +
            Connecting to database specified by database.yml
         | 
| 4738 | 
            +
            Connecting to database specified by database.yml
         | 
| 4739 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 4740 | 
            +
              [1m[35m (0.2ms)[0m  select sqlite_version(*)
         | 
| 4741 | 
            +
              [1m[36m (16.6ms)[0m  [1mCREATE 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') [0m
         | 
| 4742 | 
            +
              [1m[35m (3.4ms)[0m  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 | 
            +
              [1m[36m (4.2ms)[0m  [1mCREATE 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)) [0m
         | 
| 4744 | 
            +
              [1m[35m (3.8ms)[0m  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 | 
            +
              [1m[36m (4.6ms)[0m  [1mCREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) [0m
         | 
| 4746 | 
            +
              [1m[35m (4.1ms)[0m  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 | 
            +
              [1m[36m (3.0ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 4748 | 
            +
              [1m[35m (5.2ms)[0m  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 | 
            +
              [1m[36m (3.2ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
         | 
| 4750 | 
            +
              [1m[35m (4.4ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
         | 
| 4751 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT version FROM "schema_migrations"[0m
         | 
| 4752 | 
            +
              [1m[35m (3.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130227145530')
         | 
| 4753 | 
            +
              [1m[36m (5.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134951')[0m
         | 
| 4754 | 
            +
              [1m[35m (3.4ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
         | 
| 4755 | 
            +
              [1m[36m (4.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134955')[0m
         | 
| 4756 | 
            +
              [1m[35m (3.9ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
         | 
| 4757 | 
            +
              [1m[36m (3.8ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
         | 
| 4758 | 
            +
              [1m[35m (4.4ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
         | 
| 4759 | 
            +
              [1m[36m (3.4ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
         | 
| 4760 | 
            +
              [1m[35m (3.9ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
         | 
| 4761 | 
            +
              [1m[36m (3.9ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130217135512')[0m
         | 
| 4762 | 
            +
              [1m[35m (3.6ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
         | 
| 4763 | 
            +
              [1m[36m (4.2ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130201155147')[0m
         | 
| 4764 | 
            +
              [1m[35m (4.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
         | 
| 4765 | 
            +
              [1m[36m (3.6ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134953')[0m
         | 
| 4766 | 
            +
              [1m[35m (4.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
         | 
| 4767 | 
            +
              [1m[36m (3.6ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
         | 
| 4768 | 
            +
              [1m[35m (3.8ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
         | 
| 4769 | 
            +
            Connecting to database specified by database.yml
         | 
| 4770 | 
            +
              [1m[36m (0.1ms)[0m  [1mselect sqlite_version(*)[0m
         | 
| 4771 | 
            +
              [1m[35m (18.3ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 4772 | 
            +
              [1m[36m (4.1ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 4773 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 4774 | 
            +
            Migrating to CreatePosts (20121202111750)
         | 
| 4775 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4776 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
         | 
| 4778 | 
            +
              [1m[35m (5.1ms)[0m  commit transaction
         | 
| 4779 | 
            +
            Migrating to CreateUsers (20121202112556)
         | 
| 4780 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4781 | 
            +
              [1m[35m (0.3ms)[0m  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 4782 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
         | 
| 4783 | 
            +
              [1m[35m (3.7ms)[0m  commit transaction
         | 
| 4784 | 
            +
            Migrating to CreateCommunities (20130201155147)
         | 
| 4785 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4786 | 
            +
              [1m[35m (0.1ms)[0m  CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 4787 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
         | 
| 4788 | 
            +
              [1m[35m (3.7ms)[0m  commit transaction
         | 
| 4789 | 
            +
            Migrating to CreateInkwellTimelineItems (20130208134948)
         | 
| 4790 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4791 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
         | 
| 4793 | 
            +
              [1m[35m (4.8ms)[0m  commit transaction
         | 
| 4794 | 
            +
            Migrating to AddColumnsToPosts (20130208134949)
         | 
| 4795 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4796 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
         | 
| 4797 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
         | 
| 4798 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
         | 
| 4799 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
         | 
| 4800 | 
            +
              [1m[35m (3.8ms)[0m  commit transaction
         | 
| 4801 | 
            +
            Migrating to CreateInkwellBlogItems (20130208134950)
         | 
| 4802 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4803 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
         | 
| 4805 | 
            +
              [1m[35m (3.9ms)[0m  commit transaction
         | 
| 4806 | 
            +
            Migrating to CreateInkwellFavoriteItems (20130208134951)
         | 
| 4807 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4808 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
         | 
| 4810 | 
            +
              [1m[35m (5.0ms)[0m  commit transaction
         | 
| 4811 | 
            +
            Migrating to AddColumnsToUsers (20130208134952)
         | 
| 4812 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4813 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
         | 
| 4814 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
         | 
| 4815 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
         | 
| 4816 | 
            +
              [1m[36m (4.7ms)[0m  [1mcommit transaction[0m
         | 
| 4817 | 
            +
            Migrating to CreateInkwellComments (20130208134953)
         | 
| 4818 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4819 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 4820 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
         | 
| 4821 | 
            +
              [1m[36m (4.3ms)[0m  [1mcommit transaction[0m
         | 
| 4822 | 
            +
            Migrating to ChangeTablesForCommunities (20130208134954)
         | 
| 4823 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4824 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4825 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4826 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4827 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4829 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4830 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4831 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4832 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4833 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4835 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4836 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4837 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4838 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4839 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4841 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4842 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4843 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_blog_items"
         | 
| 4844 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_blog_items"[0m
         | 
| 4845 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_blog_items"[0m
         | 
| 4847 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_blog_items"
         | 
| 4848 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
         | 
| 4849 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
         | 
| 4850 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4851 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_timeline_items"
         | 
| 4852 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_timeline_items"[0m
         | 
| 4853 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
         | 
| 4855 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_timeline_items"
         | 
| 4856 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
         | 
| 4857 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
         | 
| 4858 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 4859 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
         | 
| 4860 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "owner_id" integer[0m
         | 
| 4861 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
         | 
| 4862 | 
            +
              [1m[36m (5.2ms)[0m  [1mcommit transaction[0m
         | 
| 4863 | 
            +
            Migrating to AddCommunityIdsToPost (20130208134955)
         | 
| 4864 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4865 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 4866 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
         | 
| 4867 | 
            +
              [1m[36m (5.5ms)[0m  [1mcommit transaction[0m
         | 
| 4868 | 
            +
            Migrating to ChangeIsCommentToItemType (20130210231424)
         | 
| 4869 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4870 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
         | 
| 4871 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
         | 
| 4872 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
         | 
| 4873 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 4875 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 4876 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4877 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 4878 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 4879 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
         | 
| 4880 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
         | 
| 4881 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
         | 
| 4882 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4883 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_favorite_items"
         | 
| 4884 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_favorite_items"[0m
         | 
| 4885 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
         | 
| 4887 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_favorite_items"
         | 
| 4888 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
         | 
| 4889 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
         | 
| 4890 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
         | 
| 4891 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 4893 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 4894 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4895 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 4896 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 4897 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
         | 
| 4898 | 
            +
              [1m[36m (4.2ms)[0m  [1mcommit transaction[0m
         | 
| 4899 | 
            +
            Migrating to AddOwnerTypeToLines (20130212130848)
         | 
| 4900 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4901 | 
            +
              [1m[36m (0.3ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
         | 
| 4902 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
         | 
| 4903 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
         | 
| 4904 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 4906 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 4907 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4908 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 4909 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 4910 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
         | 
| 4911 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
         | 
| 4912 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_favorite_items"[0m
         | 
| 4914 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_favorite_items"
         | 
| 4915 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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)) [0m
         | 
| 4916 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_favorite_items"
         | 
| 4917 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "altered_inkwell_favorite_items"[0m
         | 
| 4918 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
         | 
| 4919 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
         | 
| 4920 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 4922 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 4923 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4924 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 4925 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 4926 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
         | 
| 4927 | 
            +
              [1m[36m (3.6ms)[0m  [1mcommit transaction[0m
         | 
| 4928 | 
            +
            Migrating to RefactorCommentTable (20130213101736)
         | 
| 4929 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4930 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4931 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 4932 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 4933 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 4935 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 4936 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
         | 
| 4937 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
         | 
| 4938 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
         | 
| 4939 | 
            +
              [1m[35m (5.2ms)[0m  commit transaction
         | 
| 4940 | 
            +
            Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
         | 
| 4941 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 4942 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_comments"[0m
         | 
| 4944 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_comments"
         | 
| 4945 | 
            +
              [1m[36m (0.4ms)[0m  [1mCREATE 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)) [0m
         | 
| 4946 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_comments"
         | 
| 4947 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_comments"[0m
         | 
| 4948 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
         | 
| 4949 | 
            +
              [1m[36m (3.8ms)[0m  [1mcommit transaction[0m
         | 
| 4950 | 
            +
            Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
         | 
| 4951 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 4952 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'[0m
         | 
| 4953 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
         | 
| 4954 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'[0m
         | 
| 4955 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
         | 
| 4956 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'[0m
         | 
| 4957 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
         | 
| 4958 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 4959 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 4960 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4961 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4963 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4964 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 4965 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 4966 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 4967 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 4969 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 4970 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')[0m
         | 
| 4971 | 
            +
              [1m[35m (4.1ms)[0m  commit transaction
         | 
| 4972 | 
            +
            Migrating to RefactorFollowingsRelation (20130227151303)
         | 
| 4973 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 4974 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) 
         | 
| 4975 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer DEFAULT 0[0m
         | 
| 4976 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
         | 
| 4977 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 4978 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 4980 | 
            +
              [1m[35m (0.3ms)[0m  DROP TABLE "users"
         | 
| 4981 | 
            +
              [1m[36m (0.3ms)[0m  [1mCREATE 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) [0m
         | 
| 4982 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 4983 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 4984 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 4986 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 4987 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 4988 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 4989 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 4990 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130227151303')
         | 
| 4991 | 
            +
              [1m[36m (6.1ms)[0m  [1mcommit transaction[0m
         | 
| 4992 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 4993 | 
            +
            Connecting to database specified by database.yml
         | 
| 4994 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 4995 | 
            +
              [1m[35m (0.1ms)[0m  select sqlite_version(*)
         | 
| 4996 | 
            +
              [1m[36m (15.2ms)[0m  [1mCREATE 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') [0m
         | 
| 4997 | 
            +
              [1m[35m (3.8ms)[0m  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 | 
            +
              [1m[36m (4.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 4999 | 
            +
              [1m[35m (3.8ms)[0m  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 | 
            +
              [1m[36m (4.6ms)[0m  [1mCREATE TABLE "inkwell_followings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "follower_id" integer, "followed_id" integer) [0m
         | 
| 5001 | 
            +
              [1m[35m (3.9ms)[0m  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 | 
            +
              [1m[36m (3.6ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5003 | 
            +
              [1m[35m (4.5ms)[0m  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 | 
            +
              [1m[36m (4.5ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
         | 
| 5005 | 
            +
              [1m[35m (4.6ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
         | 
| 5006 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT version FROM "schema_migrations"[0m
         | 
| 5007 | 
            +
              [1m[35m (4.1ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130227151303')
         | 
| 5008 | 
            +
              [1m[36m (4.1ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134951')[0m
         | 
| 5009 | 
            +
              [1m[35m (4.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
         | 
| 5010 | 
            +
              [1m[36m (4.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134955')[0m
         | 
| 5011 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
         | 
| 5012 | 
            +
              [1m[36m (3.7ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
         | 
| 5013 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
         | 
| 5014 | 
            +
              [1m[36m (4.2ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
         | 
| 5015 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
         | 
| 5016 | 
            +
              [1m[36m (4.9ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130217135512')[0m
         | 
| 5017 | 
            +
              [1m[35m (3.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
         | 
| 5018 | 
            +
              [1m[36m (4.1ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130201155147')[0m
         | 
| 5019 | 
            +
              [1m[35m (4.2ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
         | 
| 5020 | 
            +
              [1m[36m (3.9ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134953')[0m
         | 
| 5021 | 
            +
              [1m[35m (4.1ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
         | 
| 5022 | 
            +
              [1m[36m (5.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
         | 
| 5023 | 
            +
              [1m[35m (4.4ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
         | 
| 5024 | 
            +
            Connecting to database specified by database.yml
         | 
| 5025 | 
            +
              [1m[36m (0.9ms)[0m  [1mselect sqlite_version(*)[0m
         | 
| 5026 | 
            +
              [1m[35m (10.8ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 5027 | 
            +
              [1m[36m (3.0ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 5028 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5029 | 
            +
            Migrating to CreatePosts (20121202111750)
         | 
| 5030 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5031 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
         | 
| 5033 | 
            +
              [1m[35m (5.0ms)[0m  commit transaction
         | 
| 5034 | 
            +
            Migrating to CreateUsers (20121202112556)
         | 
| 5035 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 5036 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 5037 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
         | 
| 5038 | 
            +
              [1m[35m (4.0ms)[0m  commit transaction
         | 
| 5039 | 
            +
            Migrating to CreateCommunities (20130201155147)
         | 
| 5040 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5041 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 5042 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
         | 
| 5043 | 
            +
              [1m[35m (4.0ms)[0m  commit transaction
         | 
| 5044 | 
            +
            Migrating to CreateInkwellTimelineItems (20130208134948)
         | 
| 5045 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5046 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
         | 
| 5048 | 
            +
              [1m[35m (5.1ms)[0m  commit transaction
         | 
| 5049 | 
            +
            Migrating to AddColumnsToPosts (20130208134949)
         | 
| 5050 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5051 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
         | 
| 5052 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
         | 
| 5053 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
         | 
| 5054 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
         | 
| 5055 | 
            +
              [1m[35m (3.4ms)[0m  commit transaction
         | 
| 5056 | 
            +
            Migrating to CreateInkwellBlogItems (20130208134950)
         | 
| 5057 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5058 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
         | 
| 5060 | 
            +
              [1m[35m (3.6ms)[0m  commit transaction
         | 
| 5061 | 
            +
            Migrating to CreateInkwellFavoriteItems (20130208134951)
         | 
| 5062 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5063 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
         | 
| 5065 | 
            +
              [1m[35m (5.3ms)[0m  commit transaction
         | 
| 5066 | 
            +
            Migrating to AddColumnsToUsers (20130208134952)
         | 
| 5067 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5068 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
         | 
| 5069 | 
            +
              [1m[36m (0.0ms)[0m  [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
         | 
| 5070 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
         | 
| 5071 | 
            +
              [1m[36m (4.9ms)[0m  [1mcommit transaction[0m
         | 
| 5072 | 
            +
            Migrating to CreateInkwellComments (20130208134953)
         | 
| 5073 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5074 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5075 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
         | 
| 5076 | 
            +
              [1m[36m (3.9ms)[0m  [1mcommit transaction[0m
         | 
| 5077 | 
            +
            Migrating to ChangeTablesForCommunities (20130208134954)
         | 
| 5078 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5079 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5080 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5081 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5082 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5084 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5085 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5086 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5087 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5088 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5090 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5091 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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) [0m
         | 
| 5092 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5093 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5094 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5096 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5097 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5098 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_blog_items"
         | 
| 5099 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_blog_items"[0m
         | 
| 5100 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_blog_items"[0m
         | 
| 5102 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_blog_items"
         | 
| 5103 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
         | 
| 5104 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
         | 
| 5105 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5106 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_timeline_items"
         | 
| 5107 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_timeline_items"[0m
         | 
| 5108 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
         | 
| 5110 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_timeline_items"
         | 
| 5111 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
         | 
| 5112 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
         | 
| 5113 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 5114 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
         | 
| 5115 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "owner_id" integer[0m
         | 
| 5116 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
         | 
| 5117 | 
            +
              [1m[36m (5.3ms)[0m  [1mcommit transaction[0m
         | 
| 5118 | 
            +
            Migrating to AddCommunityIdsToPost (20130208134955)
         | 
| 5119 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5120 | 
            +
              [1m[36m (0.4ms)[0m  [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 5121 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
         | 
| 5122 | 
            +
              [1m[36m (4.8ms)[0m  [1mcommit transaction[0m
         | 
| 5123 | 
            +
            Migrating to ChangeIsCommentToItemType (20130210231424)
         | 
| 5124 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5125 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
         | 
| 5126 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
         | 
| 5127 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
         | 
| 5128 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 5130 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 5131 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5132 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 5133 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 5134 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
         | 
| 5135 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
         | 
| 5136 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
         | 
| 5137 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5138 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_favorite_items"
         | 
| 5139 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_favorite_items"[0m
         | 
| 5140 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
         | 
| 5142 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_favorite_items"
         | 
| 5143 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
         | 
| 5144 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
         | 
| 5145 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
         | 
| 5146 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 5148 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 5149 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5150 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 5151 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 5152 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
         | 
| 5153 | 
            +
              [1m[36m (3.2ms)[0m  [1mcommit transaction[0m
         | 
| 5154 | 
            +
            Migrating to AddOwnerTypeToLines (20130212130848)
         | 
| 5155 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5156 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
         | 
| 5157 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
         | 
| 5158 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
         | 
| 5159 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 5161 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 5162 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5163 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 5164 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 5165 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
         | 
| 5166 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
         | 
| 5167 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_favorite_items"[0m
         | 
| 5169 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_favorite_items"
         | 
| 5170 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5171 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_favorite_items"
         | 
| 5172 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_favorite_items"[0m
         | 
| 5173 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
         | 
| 5174 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
         | 
| 5175 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 5177 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 5178 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5179 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 5180 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 5181 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
         | 
| 5182 | 
            +
              [1m[36m (3.5ms)[0m  [1mcommit transaction[0m
         | 
| 5183 | 
            +
            Migrating to RefactorCommentTable (20130213101736)
         | 
| 5184 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5185 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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) [0m
         | 
| 5186 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5187 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5188 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5190 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5191 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
         | 
| 5192 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
         | 
| 5193 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
         | 
| 5194 | 
            +
              [1m[35m (4.6ms)[0m  commit transaction
         | 
| 5195 | 
            +
            Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
         | 
| 5196 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5197 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_comments"[0m
         | 
| 5199 | 
            +
              [1m[35m (0.3ms)[0m  DROP TABLE "inkwell_comments"
         | 
| 5200 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5201 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_comments"
         | 
| 5202 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_comments"[0m
         | 
| 5203 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
         | 
| 5204 | 
            +
              [1m[36m (3.6ms)[0m  [1mcommit transaction[0m
         | 
| 5205 | 
            +
            Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
         | 
| 5206 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5207 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'[0m
         | 
| 5208 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
         | 
| 5209 | 
            +
              [1m[36m (0.3ms)[0m  [1mALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'[0m
         | 
| 5210 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
         | 
| 5211 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'[0m
         | 
| 5212 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
         | 
| 5213 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5214 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 5215 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 5216 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 5218 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5219 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5220 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 5221 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 5222 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 5224 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5225 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')[0m
         | 
| 5226 | 
            +
              [1m[35m (4.4ms)[0m  commit transaction
         | 
| 5227 | 
            +
            Migrating to RefactorFollowingsRelation (20130227154519)
         | 
| 5228 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5229 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer DEFAULT 0[0m
         | 
| 5231 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
         | 
| 5232 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 5233 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5235 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "users"
         | 
| 5236 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5237 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 5238 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5239 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5241 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 5242 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5243 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 5244 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5245 | 
            +
              [1m[35m (0.0ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
         | 
| 5246 | 
            +
              [1m[36m (5.5ms)[0m  [1mcommit transaction[0m
         | 
| 5247 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5248 | 
            +
            Connecting to database specified by database.yml
         | 
| 5249 | 
            +
              [1m[36m (0.2ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 5250 | 
            +
              [1m[35m (0.2ms)[0m  select sqlite_version(*)
         | 
| 5251 | 
            +
              [1m[36m (10.3ms)[0m  [1mCREATE 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') [0m
         | 
| 5252 | 
            +
              [1m[35m (4.3ms)[0m  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 | 
            +
              [1m[36m (4.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5254 | 
            +
              [1m[35m (3.8ms)[0m  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 | 
            +
              [1m[36m (9.0ms)[0m  [1mCREATE 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) [0m
         | 
| 5256 | 
            +
              [1m[35m (3.6ms)[0m  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 | 
            +
              [1m[36m (5.5ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5258 | 
            +
              [1m[35m (6.6ms)[0m  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 | 
            +
              [1m[36m (4.1ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
         | 
| 5260 | 
            +
              [1m[35m (4.9ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
         | 
| 5261 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT version FROM "schema_migrations"[0m
         | 
| 5262 | 
            +
              [1m[35m (5.1ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130227154519')
         | 
| 5263 | 
            +
              [1m[36m (4.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134951')[0m
         | 
| 5264 | 
            +
              [1m[35m (4.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134949')
         | 
| 5265 | 
            +
              [1m[36m (3.9ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134955')[0m
         | 
| 5266 | 
            +
              [1m[35m (4.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
         | 
| 5267 | 
            +
              [1m[36m (4.1ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
         | 
| 5268 | 
            +
              [1m[35m (5.2ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
         | 
| 5269 | 
            +
              [1m[36m (4.2ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
         | 
| 5270 | 
            +
              [1m[35m (3.8ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
         | 
| 5271 | 
            +
              [1m[36m (4.7ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130217135512')[0m
         | 
| 5272 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
         | 
| 5273 | 
            +
              [1m[36m (4.7ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130201155147')[0m
         | 
| 5274 | 
            +
              [1m[35m (3.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
         | 
| 5275 | 
            +
              [1m[36m (3.8ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134953')[0m
         | 
| 5276 | 
            +
              [1m[35m (4.3ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
         | 
| 5277 | 
            +
              [1m[36m (4.1ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
         | 
| 5278 | 
            +
              [1m[35m (4.8ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
         | 
| 5279 | 
            +
            Connecting to database specified by database.yml
         | 
| 5280 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.1ms)[0m  select sqlite_version(*)
         | 
| 5300 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5301 | 
            +
              [1m[35m (0.4ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "user_count" integer DEFAULT 0[0m
         | 
| 5303 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
         | 
| 5304 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0[0m
         | 
| 5305 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
         | 
| 5306 | 
            +
              [1m[36mCommunity Load (0.1ms)[0m  [1mSELECT "communities".* FROM "communities" [0m
         | 
| 5307 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130228113859')
         | 
| 5308 | 
            +
              [1m[36m (20.3ms)[0m  [1mcommit transaction[0m
         | 
| 5309 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5310 | 
            +
            Connecting to database specified by database.yml
         | 
| 5311 | 
            +
              [1m[36m (0.1ms)[0m  [1mselect sqlite_version(*)[0m
         | 
| 5312 | 
            +
              [1m[35m (13.5ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 5313 | 
            +
              [1m[36m (4.3ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 5314 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5315 | 
            +
            Migrating to CreatePosts (20121202111750)
         | 
| 5316 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5317 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
         | 
| 5319 | 
            +
              [1m[35m (5.9ms)[0m  commit transaction
         | 
| 5320 | 
            +
            Migrating to CreateUsers (20121202112556)
         | 
| 5321 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5322 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 5323 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
         | 
| 5324 | 
            +
              [1m[35m (4.4ms)[0m  commit transaction
         | 
| 5325 | 
            +
            Migrating to CreateCommunities (20130201155147)
         | 
| 5326 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5327 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 5328 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
         | 
| 5329 | 
            +
              [1m[35m (3.6ms)[0m  commit transaction
         | 
| 5330 | 
            +
            Migrating to CreateInkwellTimelineItems (20130208134948)
         | 
| 5331 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5332 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
         | 
| 5334 | 
            +
              [1m[35m (5.7ms)[0m  commit transaction
         | 
| 5335 | 
            +
            Migrating to AddColumnsToPosts (20130208134949)
         | 
| 5336 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5337 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
         | 
| 5338 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
         | 
| 5339 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
         | 
| 5340 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
         | 
| 5341 | 
            +
              [1m[35m (4.6ms)[0m  commit transaction
         | 
| 5342 | 
            +
            Migrating to CreateInkwellBlogItems (20130208134950)
         | 
| 5343 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5344 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
         | 
| 5346 | 
            +
              [1m[35m (4.4ms)[0m  commit transaction
         | 
| 5347 | 
            +
            Migrating to CreateInkwellFavoriteItems (20130208134951)
         | 
| 5348 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5349 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
         | 
| 5351 | 
            +
              [1m[35m (5.6ms)[0m  commit transaction
         | 
| 5352 | 
            +
            Migrating to AddColumnsToUsers (20130208134952)
         | 
| 5353 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5354 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
         | 
| 5355 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
         | 
| 5356 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
         | 
| 5357 | 
            +
              [1m[36m (4.4ms)[0m  [1mcommit transaction[0m
         | 
| 5358 | 
            +
            Migrating to CreateInkwellComments (20130208134953)
         | 
| 5359 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5360 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5361 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
         | 
| 5362 | 
            +
              [1m[36m (4.3ms)[0m  [1mcommit transaction[0m
         | 
| 5363 | 
            +
            Migrating to ChangeTablesForCommunities (20130208134954)
         | 
| 5364 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5365 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5366 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5367 | 
            +
              [1m[36m (0.3ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5368 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5370 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5371 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5372 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5373 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5374 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5376 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5377 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5378 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5379 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5380 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5382 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5383 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5384 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_blog_items"
         | 
| 5385 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_blog_items"[0m
         | 
| 5386 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_blog_items"[0m
         | 
| 5388 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "altered_inkwell_blog_items"
         | 
| 5389 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
         | 
| 5390 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
         | 
| 5391 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5392 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_timeline_items"
         | 
| 5393 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_timeline_items"[0m
         | 
| 5394 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
         | 
| 5396 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_timeline_items"
         | 
| 5397 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
         | 
| 5398 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
         | 
| 5399 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 5400 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
         | 
| 5401 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "owner_id" integer[0m
         | 
| 5402 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
         | 
| 5403 | 
            +
              [1m[36m (4.5ms)[0m  [1mcommit transaction[0m
         | 
| 5404 | 
            +
            Migrating to AddCommunityIdsToPost (20130208134955)
         | 
| 5405 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5406 | 
            +
              [1m[36m (0.3ms)[0m  [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 5407 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
         | 
| 5408 | 
            +
              [1m[36m (5.1ms)[0m  [1mcommit transaction[0m
         | 
| 5409 | 
            +
            Migrating to ChangeIsCommentToItemType (20130210231424)
         | 
| 5410 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5411 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
         | 
| 5412 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
         | 
| 5413 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
         | 
| 5414 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 5416 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 5417 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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)) [0m
         | 
| 5418 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 5419 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 5420 | 
            +
              [1m[35m (0.3ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
         | 
| 5421 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
         | 
| 5422 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
         | 
| 5423 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5424 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_favorite_items"
         | 
| 5425 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_favorite_items"[0m
         | 
| 5426 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
         | 
| 5428 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_favorite_items"
         | 
| 5429 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
         | 
| 5430 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
         | 
| 5431 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
         | 
| 5432 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 5434 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 5435 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5436 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 5437 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 5438 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
         | 
| 5439 | 
            +
              [1m[36m (4.5ms)[0m  [1mcommit transaction[0m
         | 
| 5440 | 
            +
            Migrating to AddOwnerTypeToLines (20130212130848)
         | 
| 5441 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5442 | 
            +
              [1m[36m (0.4ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
         | 
| 5443 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
         | 
| 5444 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
         | 
| 5445 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 5447 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 5448 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5449 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 5450 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 5451 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
         | 
| 5452 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
         | 
| 5453 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_favorite_items"[0m
         | 
| 5455 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_favorite_items"
         | 
| 5456 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5457 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_favorite_items"
         | 
| 5458 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "altered_inkwell_favorite_items"[0m
         | 
| 5459 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
         | 
| 5460 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
         | 
| 5461 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 5463 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 5464 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5465 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 5466 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 5467 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
         | 
| 5468 | 
            +
              [1m[36m (5.0ms)[0m  [1mcommit transaction[0m
         | 
| 5469 | 
            +
            Migrating to RefactorCommentTable (20130213101736)
         | 
| 5470 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5471 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5472 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5473 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5474 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5476 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5477 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
         | 
| 5478 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
         | 
| 5479 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
         | 
| 5480 | 
            +
              [1m[35m (5.6ms)[0m  commit transaction
         | 
| 5481 | 
            +
            Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
         | 
| 5482 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5483 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_comments"[0m
         | 
| 5485 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_comments"
         | 
| 5486 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5487 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_comments"
         | 
| 5488 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_comments"[0m
         | 
| 5489 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
         | 
| 5490 | 
            +
              [1m[36m (4.6ms)[0m  [1mcommit transaction[0m
         | 
| 5491 | 
            +
            Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
         | 
| 5492 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5493 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'[0m
         | 
| 5494 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
         | 
| 5495 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'[0m
         | 
| 5496 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
         | 
| 5497 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'[0m
         | 
| 5498 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
         | 
| 5499 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5500 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 5501 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 5502 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 5504 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5505 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5506 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 5507 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 5508 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 5510 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5511 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')[0m
         | 
| 5512 | 
            +
              [1m[35m (4.5ms)[0m  commit transaction
         | 
| 5513 | 
            +
            Migrating to RefactorFollowingsRelation (20130227154519)
         | 
| 5514 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5515 | 
            +
              [1m[35m (0.4ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer DEFAULT 0[0m
         | 
| 5517 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
         | 
| 5518 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 5519 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5521 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "users"
         | 
| 5522 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5523 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_users"
         | 
| 5524 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5525 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5527 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 5528 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5529 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 5530 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5531 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
         | 
| 5532 | 
            +
              [1m[36m (5.1ms)[0m  [1mcommit transaction[0m
         | 
| 5533 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5534 | 
            +
            Connecting to database specified by database.yml
         | 
| 5535 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.0ms)[0m  select sqlite_version(*)
         | 
| 5555 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5556 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "user_count" integer DEFAULT 0[0m
         | 
| 5558 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
         | 
| 5559 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0[0m
         | 
| 5560 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
         | 
| 5561 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "community_count" integer DEFAULT 0[0m
         | 
| 5562 | 
            +
              [1m[35mCommunity Load (0.0ms)[0m  SELECT "communities".* FROM "communities" 
         | 
| 5563 | 
            +
              [1m[36mUser Load (0.0ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 5564 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 5566 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "communities"
         | 
| 5567 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5568 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5569 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 5570 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 5572 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 5573 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5574 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5575 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 5576 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 5578 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "communities"
         | 
| 5579 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5580 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5581 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 5582 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 5584 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 5585 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5586 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5587 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 5588 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5590 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 5591 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5592 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 5593 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5594 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130228114538')
         | 
| 5595 | 
            +
              [1m[36m (322.1ms)[0m  [1mcommit transaction[0m
         | 
| 5596 | 
            +
              [1m[35m (0.2ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5597 | 
            +
            Connecting to database specified by database.yml
         | 
| 5598 | 
            +
              [1m[36m (0.7ms)[0m  [1mselect sqlite_version(*)[0m
         | 
| 5599 | 
            +
              [1m[35m (20.1ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 5600 | 
            +
              [1m[36m (3.5ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 5601 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5602 | 
            +
            Migrating to CreatePosts (20121202111750)
         | 
| 5603 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5604 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
         | 
| 5606 | 
            +
              [1m[35m (4.6ms)[0m  commit transaction
         | 
| 5607 | 
            +
            Migrating to CreateUsers (20121202112556)
         | 
| 5608 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5609 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 5610 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
         | 
| 5611 | 
            +
              [1m[35m (3.5ms)[0m  commit transaction
         | 
| 5612 | 
            +
            Migrating to CreateCommunities (20130201155147)
         | 
| 5613 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5614 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 5615 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
         | 
| 5616 | 
            +
              [1m[35m (3.9ms)[0m  commit transaction
         | 
| 5617 | 
            +
            Migrating to CreateInkwellTimelineItems (20130208134948)
         | 
| 5618 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 5619 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
         | 
| 5621 | 
            +
              [1m[35m (5.2ms)[0m  commit transaction
         | 
| 5622 | 
            +
            Migrating to AddColumnsToPosts (20130208134949)
         | 
| 5623 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5624 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
         | 
| 5625 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
         | 
| 5626 | 
            +
              [1m[35m (0.6ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
         | 
| 5627 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
         | 
| 5628 | 
            +
              [1m[35m (4.5ms)[0m  commit transaction
         | 
| 5629 | 
            +
            Migrating to CreateInkwellBlogItems (20130208134950)
         | 
| 5630 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5631 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
         | 
| 5633 | 
            +
              [1m[35m (5.2ms)[0m  commit transaction
         | 
| 5634 | 
            +
            Migrating to CreateInkwellFavoriteItems (20130208134951)
         | 
| 5635 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5636 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
         | 
| 5638 | 
            +
              [1m[35m (5.7ms)[0m  commit transaction
         | 
| 5639 | 
            +
            Migrating to AddColumnsToUsers (20130208134952)
         | 
| 5640 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5641 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
         | 
| 5642 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
         | 
| 5643 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
         | 
| 5644 | 
            +
              [1m[36m (4.1ms)[0m  [1mcommit transaction[0m
         | 
| 5645 | 
            +
            Migrating to CreateInkwellComments (20130208134953)
         | 
| 5646 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5647 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5648 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
         | 
| 5649 | 
            +
              [1m[36m (5.3ms)[0m  [1mcommit transaction[0m
         | 
| 5650 | 
            +
            Migrating to ChangeTablesForCommunities (20130208134954)
         | 
| 5651 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5652 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5653 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5654 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5655 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5657 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5658 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5659 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5660 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5661 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5663 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5664 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5665 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5666 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5667 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5669 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5670 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5671 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_blog_items"
         | 
| 5672 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_blog_items"[0m
         | 
| 5673 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_blog_items"[0m
         | 
| 5675 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_blog_items"
         | 
| 5676 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
         | 
| 5677 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
         | 
| 5678 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5679 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_timeline_items"
         | 
| 5680 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_timeline_items"[0m
         | 
| 5681 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
         | 
| 5683 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_timeline_items"
         | 
| 5684 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
         | 
| 5685 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
         | 
| 5686 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 5687 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
         | 
| 5688 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "owner_id" integer[0m
         | 
| 5689 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
         | 
| 5690 | 
            +
              [1m[36m (4.8ms)[0m  [1mcommit transaction[0m
         | 
| 5691 | 
            +
            Migrating to AddCommunityIdsToPost (20130208134955)
         | 
| 5692 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5693 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 5694 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
         | 
| 5695 | 
            +
              [1m[36m (3.3ms)[0m  [1mcommit transaction[0m
         | 
| 5696 | 
            +
            Migrating to ChangeIsCommentToItemType (20130210231424)
         | 
| 5697 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5698 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
         | 
| 5699 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
         | 
| 5700 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
         | 
| 5701 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 5703 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 5704 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5705 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 5706 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 5707 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
         | 
| 5708 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
         | 
| 5709 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
         | 
| 5710 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5711 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_favorite_items"
         | 
| 5712 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_favorite_items"[0m
         | 
| 5713 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
         | 
| 5715 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_favorite_items"
         | 
| 5716 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
         | 
| 5717 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
         | 
| 5718 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
         | 
| 5719 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 5721 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 5722 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5723 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 5724 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 5725 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
         | 
| 5726 | 
            +
              [1m[36m (4.0ms)[0m  [1mcommit transaction[0m
         | 
| 5727 | 
            +
            Migrating to AddOwnerTypeToLines (20130212130848)
         | 
| 5728 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5729 | 
            +
              [1m[36m (0.3ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
         | 
| 5730 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
         | 
| 5731 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
         | 
| 5732 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 5734 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 5735 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5736 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 5737 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 5738 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
         | 
| 5739 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
         | 
| 5740 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_favorite_items"[0m
         | 
| 5742 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_favorite_items"
         | 
| 5743 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5744 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_favorite_items"
         | 
| 5745 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_favorite_items"[0m
         | 
| 5746 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
         | 
| 5747 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
         | 
| 5748 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 5750 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 5751 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5752 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 5753 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 5754 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
         | 
| 5755 | 
            +
              [1m[36m (4.0ms)[0m  [1mcommit transaction[0m
         | 
| 5756 | 
            +
            Migrating to RefactorCommentTable (20130213101736)
         | 
| 5757 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5758 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5759 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 5760 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 5761 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 5763 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 5764 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
         | 
| 5765 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
         | 
| 5766 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
         | 
| 5767 | 
            +
              [1m[35m (3.9ms)[0m  commit transaction
         | 
| 5768 | 
            +
            Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
         | 
| 5769 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 5770 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_comments"[0m
         | 
| 5772 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_comments"
         | 
| 5773 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 5774 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_comments"
         | 
| 5775 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_comments"[0m
         | 
| 5776 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
         | 
| 5777 | 
            +
              [1m[36m (4.0ms)[0m  [1mcommit transaction[0m
         | 
| 5778 | 
            +
            Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
         | 
| 5779 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 5780 | 
            +
              [1m[36m (0.4ms)[0m  [1mALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'[0m
         | 
| 5781 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
         | 
| 5782 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'[0m
         | 
| 5783 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
         | 
| 5784 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'[0m
         | 
| 5785 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
         | 
| 5786 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5787 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "users"
         | 
| 5788 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 5789 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 5791 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5792 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 5793 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 5794 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 5795 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 5797 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5798 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')[0m
         | 
| 5799 | 
            +
              [1m[35m (4.4ms)[0m  commit transaction
         | 
| 5800 | 
            +
            Migrating to RefactorFollowingsRelation (20130227154519)
         | 
| 5801 | 
            +
              [1m[36m (0.2ms)[0m  [1mbegin transaction[0m
         | 
| 5802 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer DEFAULT 0[0m
         | 
| 5804 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
         | 
| 5805 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 5806 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5808 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "users"
         | 
| 5809 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5810 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 5811 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5812 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 5814 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 5815 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5816 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 5817 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 5818 | 
            +
              [1m[35m (0.0ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
         | 
| 5819 | 
            +
              [1m[36m (10.2ms)[0m  [1mcommit transaction[0m
         | 
| 5820 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 5821 | 
            +
            Connecting to database specified by database.yml
         | 
| 5822 | 
            +
            Connecting to database specified by database.yml
         | 
| 5823 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.0ms)[0m  select sqlite_version(*)
         | 
| 5843 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 5844 | 
            +
              [1m[35m (0.4ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "user_count" integer DEFAULT 0[0m
         | 
| 5846 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0
         | 
| 5847 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0[0m
         | 
| 5848 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0
         | 
| 5849 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "community_count" integer DEFAULT 0[0m
         | 
| 5850 | 
            +
              [1m[35mCommunity Load (0.1ms)[0m  SELECT "communities".* FROM "communities" 
         | 
| 5851 | 
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "inkwell_community_users" ("admin_level", "community_id", "created_at", "is_admin", "muted", "updated_at", "user_access", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m  [["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 | 
            +
              [1m[35mSQL (0.1ms)[0m  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 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mINSERT INTO "inkwell_community_users" ("admin_level", "community_id", "created_at", "is_admin", "muted", "updated_at", "user_access", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m  [["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 | 
            +
              [1m[35mSQL (0.2ms)[0m  UPDATE "inkwell_community_users" SET "user_access" = 'w' WHERE "inkwell_community_users"."user_id" = 1 AND "inkwell_community_users"."community_id" = 1
         | 
| 5855 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_community_users" SET "user_access" = 'w' WHERE "inkwell_community_users"."user_id" = 2 AND "inkwell_community_users"."community_id" = 1[0m
         | 
| 5856 | 
            +
              [1m[35mSQL (0.1ms)[0m  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 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_community_users" SET "muted" = 't' WHERE "inkwell_community_users"."user_id" = 2 AND "inkwell_community_users"."community_id" = 1[0m
         | 
| 5858 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 5860 | 
            +
              [1m[35m (0.1ms)[0m  UPDATE "users" SET "community_count" = 1, "updated_at" = '2013-02-28 11:52:30.977564' WHERE "users"."id" = 1
         | 
| 5861 | 
            +
              [1m[36m (0.1ms)[0m  [1mUPDATE "users" SET "community_count" = 1, "updated_at" = '2013-02-28 11:52:30.978610' WHERE "users"."id" = 2[0m
         | 
| 5862 | 
            +
              [1m[35m (0.1ms)[0m  UPDATE "users" SET "community_count" = 1, "updated_at" = '2013-02-28 11:52:30.979143' WHERE "users"."id" = 3
         | 
| 5863 | 
            +
              [1m[36m (0.9ms)[0m  [1mCREATE 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) [0m
         | 
| 5864 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 5865 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT 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)[0m
         | 
| 5866 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "communities"
         | 
| 5867 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 5868 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5869 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5870 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 5871 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5872 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 5873 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5874 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 5875 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5876 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5877 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT 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)[0m
         | 
| 5878 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 5879 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5880 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 5881 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5882 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 5883 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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) [0m
         | 
| 5884 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5885 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5886 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 5887 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5888 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "communities"
         | 
| 5889 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5890 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 5891 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5892 | 
            +
              [1m[35m (0.2ms)[0m  SELECT * FROM "altered_communities"
         | 
| 5893 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5894 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 5895 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5896 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "users"
         | 
| 5897 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT 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)[0m
         | 
| 5898 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5900 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 5901 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 5902 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_users"
         | 
| 5903 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5904 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mINSERT 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)[0m
         | 
| 5906 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 5907 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')[0m
         | 
| 5908 | 
            +
              [1m[35m (39.3ms)[0m  commit transaction
         | 
| 5909 | 
            +
              [1m[36m (0.4ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 5910 | 
            +
            Connecting to database specified by database.yml
         | 
| 5911 | 
            +
            Connecting to database specified by database.yml
         | 
| 5912 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 5913 | 
            +
              [1m[35m (0.1ms)[0m  select sqlite_version(*)
         | 
| 5914 | 
            +
              [1m[36m (10.6ms)[0m  [1mCREATE 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) [0m
         | 
| 5915 | 
            +
              [1m[35m (3.5ms)[0m  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 | 
            +
              [1m[36m (4.3ms)[0m  [1mCREATE 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)) [0m
         | 
| 5917 | 
            +
              [1m[35m (3.5ms)[0m  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 | 
            +
              [1m[36m (5.8ms)[0m  [1mCREATE 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)) [0m
         | 
| 5919 | 
            +
              [1m[35m (4.0ms)[0m  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 | 
            +
              [1m[36m (4.5ms)[0m  [1mCREATE 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)) [0m
         | 
| 5921 | 
            +
              [1m[35m (5.0ms)[0m  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 | 
            +
              [1m[36m (4.5ms)[0m  [1mCREATE 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) [0m
         | 
| 5923 | 
            +
              [1m[35m (3.7ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 5924 | 
            +
              [1m[36m (5.2ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 5925 | 
            +
              [1m[35m (0.0ms)[0m  SELECT version FROM "schema_migrations"
         | 
| 5926 | 
            +
              [1m[36m (5.5ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130228115224')[0m
         | 
| 5927 | 
            +
              [1m[35m (4.0ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
         | 
| 5928 | 
            +
              [1m[36m (4.6ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
         | 
| 5929 | 
            +
              [1m[35m (4.2ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
         | 
| 5930 | 
            +
              [1m[36m (4.5ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130227154519')[0m
         | 
| 5931 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
         | 
| 5932 | 
            +
              [1m[36m (4.8ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
         | 
| 5933 | 
            +
              [1m[35m (3.9ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
         | 
| 5934 | 
            +
              [1m[36m (4.8ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
         | 
| 5935 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
         | 
| 5936 | 
            +
              [1m[36m (4.4ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130217135512')[0m
         | 
| 5937 | 
            +
              [1m[35m (3.9ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
         | 
| 5938 | 
            +
              [1m[36m (4.9ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130201155147')[0m
         | 
| 5939 | 
            +
              [1m[35m (3.3ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
         | 
| 5940 | 
            +
              [1m[36m (5.0ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134953')[0m
         | 
| 5941 | 
            +
              [1m[35m (3.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
         | 
| 5942 | 
            +
              [1m[36m (4.5ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
         | 
| 5943 | 
            +
              [1m[35m (3.9ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 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 | 
            +
              [1m[35m (0.0ms)[0m  select sqlite_version(*)
         | 
| 6006 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6007 | 
            +
              [1m[35m (1.1ms)[0m  ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0
         | 
| 6008 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0[0m
         | 
| 6009 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6011 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6013 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6015 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6017 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6019 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6021 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6023 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6025 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'
         | 
| 6026 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'[0m
         | 
| 6027 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f'
         | 
| 6028 | 
            +
              [1m[36mCommunity Load (0.1ms)[0m  [1mSELECT "communities".* FROM "communities" [0m
         | 
| 6029 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6031 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6033 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6035 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6037 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6039 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6041 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6043 | 
            +
              [1m[35m (0.0ms)[0m  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 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6045 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130312084409')
         | 
| 6046 | 
            +
              [1m[36m (22.5ms)[0m  [1mcommit transaction[0m
         | 
| 6047 | 
            +
              [1m[35m (0.2ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 6048 | 
            +
            Connecting to database specified by database.yml
         | 
| 6049 | 
            +
              [1m[36m (0.1ms)[0m  [1mselect sqlite_version(*)[0m
         | 
| 6050 | 
            +
              [1m[35m (37.2ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 6051 | 
            +
              [1m[36m (4.6ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 6052 | 
            +
              [1m[35m (0.0ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 6053 | 
            +
            Migrating to CreatePosts (20121202111750)
         | 
| 6054 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6055 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
         | 
| 6057 | 
            +
              [1m[35m (6.6ms)[0m  commit transaction
         | 
| 6058 | 
            +
            Migrating to CreateUsers (20121202112556)
         | 
| 6059 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6060 | 
            +
              [1m[35m (0.1ms)[0m  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 6061 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
         | 
| 6062 | 
            +
              [1m[35m (8.1ms)[0m  commit transaction
         | 
| 6063 | 
            +
            Migrating to CreateCommunities (20130201155147)
         | 
| 6064 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6065 | 
            +
              [1m[35m (0.2ms)[0m  CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
         | 
| 6066 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
         | 
| 6067 | 
            +
              [1m[35m (5.1ms)[0m  commit transaction
         | 
| 6068 | 
            +
            Migrating to CreateInkwellTimelineItems (20130208134948)
         | 
| 6069 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6070 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
         | 
| 6072 | 
            +
              [1m[35m (5.1ms)[0m  commit transaction
         | 
| 6073 | 
            +
            Migrating to AddColumnsToPosts (20130208134949)
         | 
| 6074 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6075 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
         | 
| 6076 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
         | 
| 6077 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
         | 
| 6078 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
         | 
| 6079 | 
            +
              [1m[35m (3.9ms)[0m  commit transaction
         | 
| 6080 | 
            +
            Migrating to CreateInkwellBlogItems (20130208134950)
         | 
| 6081 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6082 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
         | 
| 6084 | 
            +
              [1m[35m (6.0ms)[0m  commit transaction
         | 
| 6085 | 
            +
            Migrating to CreateInkwellFavoriteItems (20130208134951)
         | 
| 6086 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6087 | 
            +
              [1m[35m (0.2ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
         | 
| 6089 | 
            +
              [1m[35m (7.2ms)[0m  commit transaction
         | 
| 6090 | 
            +
            Migrating to AddColumnsToUsers (20130208134952)
         | 
| 6091 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6092 | 
            +
              [1m[35m (0.3ms)[0m  ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
         | 
| 6093 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
         | 
| 6094 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
         | 
| 6095 | 
            +
              [1m[36m (5.1ms)[0m  [1mcommit transaction[0m
         | 
| 6096 | 
            +
            Migrating to CreateInkwellComments (20130208134953)
         | 
| 6097 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6098 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 6099 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
         | 
| 6100 | 
            +
              [1m[36m (6.3ms)[0m  [1mcommit transaction[0m
         | 
| 6101 | 
            +
            Migrating to ChangeTablesForCommunities (20130208134954)
         | 
| 6102 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6103 | 
            +
              [1m[36m (0.0ms)[0m  [1mCREATE 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) [0m
         | 
| 6104 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 6105 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 6106 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 6108 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 6109 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6110 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 6111 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 6112 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 6114 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 6115 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6116 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 6117 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 6118 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 6120 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 6121 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6122 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_blog_items"
         | 
| 6123 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_blog_items"[0m
         | 
| 6124 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_blog_items"[0m
         | 
| 6126 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_blog_items"
         | 
| 6127 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
         | 
| 6128 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
         | 
| 6129 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6130 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_timeline_items"
         | 
| 6131 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "inkwell_timeline_items"[0m
         | 
| 6132 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
         | 
| 6134 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_timeline_items"
         | 
| 6135 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
         | 
| 6136 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
         | 
| 6137 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 6138 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
         | 
| 6139 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "owner_id" integer[0m
         | 
| 6140 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
         | 
| 6141 | 
            +
              [1m[36m (6.8ms)[0m  [1mcommit transaction[0m
         | 
| 6142 | 
            +
            Migrating to AddCommunityIdsToPost (20130208134955)
         | 
| 6143 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6144 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
         | 
| 6145 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
         | 
| 6146 | 
            +
              [1m[36m (7.4ms)[0m  [1mcommit transaction[0m
         | 
| 6147 | 
            +
            Migrating to ChangeIsCommentToItemType (20130210231424)
         | 
| 6148 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6149 | 
            +
              [1m[36m (0.2ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
         | 
| 6150 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
         | 
| 6151 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
         | 
| 6152 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 6154 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 6155 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6156 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 6157 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 6158 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
         | 
| 6159 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
         | 
| 6160 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
         | 
| 6161 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6162 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "inkwell_favorite_items"
         | 
| 6163 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "inkwell_favorite_items"[0m
         | 
| 6164 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
         | 
| 6166 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_favorite_items"
         | 
| 6167 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
         | 
| 6168 | 
            +
              [1m[35mSQL (0.0ms)[0m  UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
         | 
| 6169 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
         | 
| 6170 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 6172 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 6173 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6174 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 6175 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 6176 | 
            +
              [1m[35m (0.2ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
         | 
| 6177 | 
            +
              [1m[36m (4.8ms)[0m  [1mcommit transaction[0m
         | 
| 6178 | 
            +
            Migrating to AddOwnerTypeToLines (20130212130848)
         | 
| 6179 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6180 | 
            +
              [1m[36m (0.4ms)[0m  [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
         | 
| 6181 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
         | 
| 6182 | 
            +
              [1m[36mSQL (0.1ms)[0m  [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
         | 
| 6183 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_blog_items"[0m
         | 
| 6185 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_blog_items"
         | 
| 6186 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6187 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_blog_items"
         | 
| 6188 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_blog_items"[0m
         | 
| 6189 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
         | 
| 6190 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
         | 
| 6191 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_favorite_items"[0m
         | 
| 6193 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "inkwell_favorite_items"
         | 
| 6194 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6195 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_favorite_items"
         | 
| 6196 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_favorite_items"[0m
         | 
| 6197 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
         | 
| 6198 | 
            +
              [1m[36mSQL (0.0ms)[0m  [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
         | 
| 6199 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "inkwell_timeline_items"[0m
         | 
| 6201 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_timeline_items"
         | 
| 6202 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6203 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_timeline_items"
         | 
| 6204 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_timeline_items"[0m
         | 
| 6205 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
         | 
| 6206 | 
            +
              [1m[36m (9.1ms)[0m  [1mcommit transaction[0m
         | 
| 6207 | 
            +
            Migrating to RefactorCommentTable (20130213101736)
         | 
| 6208 | 
            +
              [1m[35m (0.1ms)[0m  begin transaction
         | 
| 6209 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 6210 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "inkwell_comments"
         | 
| 6211 | 
            +
              [1m[36m (0.4ms)[0m  [1mDROP TABLE "inkwell_comments"[0m
         | 
| 6212 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_inkwell_comments"[0m
         | 
| 6214 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_inkwell_comments"
         | 
| 6215 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
         | 
| 6216 | 
            +
              [1m[35mSQL (0.1ms)[0m  UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
         | 
| 6217 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
         | 
| 6218 | 
            +
              [1m[35m (5.0ms)[0m  commit transaction
         | 
| 6219 | 
            +
            Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
         | 
| 6220 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6221 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "inkwell_comments"[0m
         | 
| 6223 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "inkwell_comments"
         | 
| 6224 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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)) [0m
         | 
| 6225 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_inkwell_comments"
         | 
| 6226 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_inkwell_comments"[0m
         | 
| 6227 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
         | 
| 6228 | 
            +
              [1m[36m (5.4ms)[0m  [1mcommit transaction[0m
         | 
| 6229 | 
            +
            Migrating to ChangeCommunityTableForAddingTypesAndUserAccess (20130217135512)
         | 
| 6230 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6231 | 
            +
              [1m[36m (0.3ms)[0m  [1mALTER TABLE "communities" ADD "default_user_access" varchar(255) DEFAULT 'w'[0m
         | 
| 6232 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "writers_ids" text DEFAULT '[]'
         | 
| 6233 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "banned_ids" text DEFAULT '[]'[0m
         | 
| 6234 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "muted_ids" text DEFAULT '[]'
         | 
| 6235 | 
            +
              [1m[36m (1.2ms)[0m  [1mALTER TABLE "communities" ADD "invitations_uids" text DEFAULT '[]'[0m
         | 
| 6236 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "communities" ADD "public" boolean DEFAULT 't'
         | 
| 6237 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 6238 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 6239 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 6240 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 6242 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 6243 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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 '[]') [0m
         | 
| 6244 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 6245 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 6246 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 6248 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 6249 | 
            +
              [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130217135512')[0m
         | 
| 6250 | 
            +
              [1m[35m (4.4ms)[0m  commit transaction
         | 
| 6251 | 
            +
            Migrating to RefactorFollowingsRelation (20130227154519)
         | 
| 6252 | 
            +
              [1m[36m (0.1ms)[0m  [1mbegin transaction[0m
         | 
| 6253 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "users" ADD "follower_count" integer DEFAULT 0[0m
         | 
| 6255 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "following_count" integer DEFAULT 0
         | 
| 6256 | 
            +
              [1m[36mUser Load (0.1ms)[0m  [1mSELECT "users".* FROM "users" [0m
         | 
| 6257 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 6259 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "users"
         | 
| 6260 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6261 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 6262 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 6263 | 
            +
              [1m[35m (0.3ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "users"[0m
         | 
| 6265 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "users"
         | 
| 6266 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6267 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_users"
         | 
| 6268 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "altered_users"[0m
         | 
| 6269 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130227154519')
         | 
| 6270 | 
            +
              [1m[36m (6.6ms)[0m  [1mcommit transaction[0m
         | 
| 6271 | 
            +
            Migrating to RefactorUserCommunityRelation (20130228115224)
         | 
| 6272 | 
            +
              [1m[35m (0.0ms)[0m  begin transaction
         | 
| 6273 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 6274 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "user_count" integer DEFAULT 0
         | 
| 6275 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "writer_count" integer DEFAULT 0[0m
         | 
| 6276 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "communities" ADD "admin_count" integer DEFAULT 0
         | 
| 6277 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "muted_count" integer DEFAULT 0[0m
         | 
| 6278 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "users" ADD "community_count" integer DEFAULT 0
         | 
| 6279 | 
            +
              [1m[36mCommunity Load (0.1ms)[0m  [1mSELECT "communities".* FROM "communities" [0m
         | 
| 6280 | 
            +
              [1m[35mUser Load (0.0ms)[0m  SELECT "users".* FROM "users" 
         | 
| 6281 | 
            +
              [1m[36m (0.2ms)[0m  [1mCREATE 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) [0m
         | 
| 6282 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 6283 | 
            +
              [1m[36m (0.2ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6284 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6286 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 6287 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6288 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 6289 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6290 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6292 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 6293 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6294 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 6295 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6296 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.7ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6298 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 6299 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6300 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "communities"
         | 
| 6301 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "communities"[0m
         | 
| 6302 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_communities"[0m
         | 
| 6304 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_communities"
         | 
| 6305 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6306 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "users"
         | 
| 6307 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "users"[0m
         | 
| 6308 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "altered_users"[0m
         | 
| 6310 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "altered_users"
         | 
| 6311 | 
            +
              [1m[36m (0.2ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130228115224')[0m
         | 
| 6312 | 
            +
              [1m[35m (5.7ms)[0m  commit transaction
         | 
| 6313 | 
            +
            Migrating to RefactorInvitesBansMutes (20130312084529)
         | 
| 6314 | 
            +
              [1m[36m (0.0ms)[0m  [1mbegin transaction[0m
         | 
| 6315 | 
            +
              [1m[35m (0.2ms)[0m  ALTER TABLE "communities" ADD "banned_count" integer DEFAULT 0
         | 
| 6316 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "communities" ADD "invitation_count" integer DEFAULT 0[0m
         | 
| 6317 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6319 | 
            +
              [1m[35m (0.2ms)[0m  DROP TABLE "communities"
         | 
| 6320 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6321 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_communities"
         | 
| 6322 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6323 | 
            +
              [1m[35m (0.6ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6325 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 6326 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6327 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 6328 | 
            +
              [1m[36m (0.0ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6329 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6331 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 6332 | 
            +
              [1m[36m (1.0ms)[0m  [1mCREATE 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) [0m
         | 
| 6333 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_communities"
         | 
| 6334 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6335 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_community_users" ADD "active" boolean DEFAULT 'f'
         | 
| 6336 | 
            +
              [1m[36m (0.1ms)[0m  [1mALTER TABLE "inkwell_community_users" ADD "banned" boolean DEFAULT 'f'[0m
         | 
| 6337 | 
            +
              [1m[35m (0.1ms)[0m  ALTER TABLE "inkwell_community_users" ADD "asked_invitation" boolean DEFAULT 'f'
         | 
| 6338 | 
            +
              [1m[36mCommunity Load (0.1ms)[0m  [1mSELECT "communities".* FROM "communities" [0m
         | 
| 6339 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6341 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 6342 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6343 | 
            +
              [1m[35m (0.0ms)[0m  SELECT * FROM "altered_communities"
         | 
| 6344 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6345 | 
            +
              [1m[35m (0.1ms)[0m  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 | 
            +
              [1m[36m (0.1ms)[0m  [1mSELECT * FROM "communities"[0m
         | 
| 6347 | 
            +
              [1m[35m (0.1ms)[0m  DROP TABLE "communities"
         | 
| 6348 | 
            +
              [1m[36m (0.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6349 | 
            +
              [1m[35m (0.1ms)[0m  SELECT * FROM "altered_communities"
         | 
| 6350 | 
            +
              [1m[36m (0.1ms)[0m  [1mDROP TABLE "altered_communities"[0m
         | 
| 6351 | 
            +
              [1m[35m (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20130312084529')
         | 
| 6352 | 
            +
              [1m[36m (5.8ms)[0m  [1mcommit transaction[0m
         | 
| 6353 | 
            +
              [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
         | 
| 6354 | 
            +
            Connecting to database specified by database.yml
         | 
| 6355 | 
            +
              [1m[36m (0.0ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
         | 
| 6356 | 
            +
              [1m[35m (0.1ms)[0m  select sqlite_version(*)
         | 
| 6357 | 
            +
              [1m[36m (375.8ms)[0m  [1mCREATE 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) [0m
         | 
| 6358 | 
            +
              [1m[35m (6.6ms)[0m  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 | 
            +
              [1m[36m (8.2ms)[0m  [1mCREATE 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)) [0m
         | 
| 6360 | 
            +
              [1m[35m (5.9ms)[0m  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 | 
            +
              [1m[36m (7.5ms)[0m  [1mCREATE 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)) [0m
         | 
| 6362 | 
            +
              [1m[35m (6.1ms)[0m  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 | 
            +
              [1m[36m (6.0ms)[0m  [1mCREATE 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)) [0m
         | 
| 6364 | 
            +
              [1m[35m (8.2ms)[0m  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 | 
            +
              [1m[36m (6.1ms)[0m  [1mCREATE 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) [0m
         | 
| 6366 | 
            +
              [1m[35m (4.7ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
         | 
| 6367 | 
            +
              [1m[36m (7.6ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 6368 | 
            +
              [1m[35m (0.1ms)[0m  SELECT version FROM "schema_migrations"
         | 
| 6369 | 
            +
              [1m[36m (5.9ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130312084529')[0m
         | 
| 6370 | 
            +
              [1m[35m (5.1ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
         | 
| 6371 | 
            +
              [1m[36m (6.1ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
         | 
| 6372 | 
            +
              [1m[35m (5.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
         | 
| 6373 | 
            +
              [1m[36m (5.3ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130227154519')[0m
         | 
| 6374 | 
            +
              [1m[35m (5.4ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213101736')
         | 
| 6375 | 
            +
              [1m[36m (5.6ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
         | 
| 6376 | 
            +
              [1m[35m (5.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
         | 
| 6377 | 
            +
              [1m[36m (5.1ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
         | 
| 6378 | 
            +
              [1m[35m (5.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130213121414')
         | 
| 6379 | 
            +
              [1m[36m (5.2ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130228115224')[0m
         | 
| 6380 | 
            +
              [1m[35m (5.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130217135512')
         | 
| 6381 | 
            +
              [1m[36m (4.8ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134954')[0m
         | 
| 6382 | 
            +
              [1m[35m (5.7ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
         | 
| 6383 | 
            +
              [1m[36m (5.3ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134950')[0m
         | 
| 6384 | 
            +
              [1m[35m (5.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
         | 
| 6385 | 
            +
              [1m[36m (5.7ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20130210231424')[0m
         | 
| 6386 | 
            +
              [1m[35m (5.5ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
         | 
| 6387 | 
            +
              [1m[36m (5.2ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202111750')[0m
         | 
| 6388 | 
            +
            Connecting to database specified by database.yml
         |