This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-03-30 06:06:59 -07:00
|
|
|
class AddCounterCaches < ActiveRecord::Migration[5.0]
|
|
|
|
def change
|
2017-03-30 06:50:34 -07:00
|
|
|
add_column :statuses, :favourites_count, :integer
|
|
|
|
add_column :statuses, :reblogs_count, :integer
|
|
|
|
add_column :accounts, :statuses_count, :integer
|
|
|
|
add_column :accounts, :followers_count, :integer
|
|
|
|
add_column :accounts, :following_count, :integer
|
2017-03-30 06:06:59 -07:00
|
|
|
end
|
|
|
|
end
|