mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 22:29:07 +01:00
10 lines
438 B
Ruby
10 lines
438 B
Ruby
|
class AddCountsToUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_column :users, :friend_count, :integer, default: 0, null: false
|
||
|
add_column :users, :follower_count, :integer, default: 0, null: false
|
||
|
add_column :users, :asked_count, :integer, default: 0, null: false
|
||
|
add_column :users, :answered_count, :integer, default: 0, null: false
|
||
|
add_column :users, :commented_count, :integer, default: 0, null: false
|
||
|
end
|
||
|
end
|