Sha256: 016d75707ffbc69ca02e12ac4a7c9a292b82b01e641eb7d0789f6ce484d0085d

Contents?: true

Size: 209 Bytes

Versions: 228

Compression:

Stored size: 209 Bytes

Contents

class AddCommentCache < ActiveRecord::Migration
  def self.up
    add_column :activities, :comment_count, :integer, :default => 0
  end

  def self.down
    remove_column :activities, :comment_count
  end
end

Version data entries

228 entries across 214 versions & 12 rubygems

Version Path
muck-groups-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-shares-3.0.1 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-services-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-profiles-3.0.1 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-contents-3.0.1 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-comments-3.0.2 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-activities-3.0.1 db/migrate/20090730044139_add_comment_cache.rb
muck-activities-3.0.1 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-raker-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-profiles-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-contents-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-activities-3.0.0 db/migrate/20090730044139_add_comment_cache.rb
muck-comments-3.0.1 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-comments-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-friends-3.0.0 test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
muck-raker-0.3.18 test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
muck-raker-0.3.17 test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
muck-services-0.1.46 test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
muck-raker-0.3.16 test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
muck-comments-0.1.21 test/rails_root/db/migrate/20090730044139_add_comment_cache.rb