updated readme
This commit is contained in:
11
db/migrate/20110808220247_update_users_table.rb
Normal file
11
db/migrate/20110808220247_update_users_table.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class UpdateUsersTable < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :users, :topics_count, :integer, :default => 0
|
||||
add_column :users, :posts_count, :integer, :default => 0
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :users, :topics_count
|
||||
remove_column :users, :posts_count
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user