]> cat aescling's git repositories - mastodon.git/commit
Extract counters from accounts table to account_stats table (#9295)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 18 Nov 2018 23:43:52 +0000 (00:43 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Nov 2018 23:43:52 +0000 (00:43 +0100)
commitd6b9a62e0a13497b8cc40eb1db56d1ec2b3760ea
treef8627888dd9dce43f66427261a90a3e9886b4df7
parent4fdefffb9906ffc3e5fde7af652674bebffd6e15
Extract counters from accounts table to account_stats table (#9295)
25 files changed:
app/controllers/admin/instances_controller.rb
app/controllers/api/v1/accounts/follower_accounts_controller.rb
app/controllers/api/v1/accounts/following_accounts_controller.rb
app/controllers/api/v1/blocks_controller.rb
app/controllers/api/v1/endorsements_controller.rb
app/controllers/api/v1/follow_requests_controller.rb
app/controllers/api/v1/lists/accounts_controller.rb
app/controllers/api/v1/statuses/favourited_by_accounts_controller.rb
app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
app/models/account.rb
app/models/account_stat.rb [new file with mode: 0644]
app/models/concerns/account_counters.rb [new file with mode: 0644]
app/models/follow.rb
app/models/notification.rb
app/models/status.rb
app/presenters/instance_presenter.rb
db/migrate/20181116165755_create_account_stats.rb [new file with mode: 0644]
db/migrate/20181116173541_copy_account_stats.rb [new file with mode: 0644]
db/post_migrate/20181116184611_copy_account_stats_cleanup.rb [new file with mode: 0644]
db/schema.rb
spec/fabricators/account_stat_fabricator.rb [new file with mode: 0644]
spec/models/account_spec.rb
spec/models/account_stat_spec.rb [new file with mode: 0644]
spec/models/notification_spec.rb
spec/models/status_stat_spec.rb