mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-11 17:53:45 +00:00
87513b31e0
Needs to be a separate task with no locking
10 lines
340 B
Ruby
10 lines
340 B
Ruby
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
|