blob: 5da9a87ea6c747586b48e95275c18d164bb47b70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class AddCounterCaches < ActiveRecord::Migration[5.0]
def change
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
end
end
|