mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:09:52 +01:00
11 lines
474 B
Ruby
11 lines
474 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddCountsToUsers < ActiveRecord::Migration[4.2]
|
|
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
|