Sha256: dde95ffc3634bf3d91dd9035afa15a9de7a9dc840c2efba10763a04897d8e724

Contents?: true

Size: 206 Bytes

Versions: 18

Compression:

Stored size: 206 Bytes

Contents

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
muck-comments-3.0.2 test/rails_test/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-3.0.1 test/rails_test/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-3.0.0 test/rails_test/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.21 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.20 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.19 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.18 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.17 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.16 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.15 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.14 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.13 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.12 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.11 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.10 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.7 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.8 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
muck-comments-0.1.9 test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb