|
|
@ -4,7 +4,7 @@ class Follow < ApplicationRecord |
|
|
|
include Paginable |
|
|
|
include Paginable |
|
|
|
|
|
|
|
|
|
|
|
belongs_to :account, counter_cache: :following_count, required: true |
|
|
|
belongs_to :account, counter_cache: :following_count, required: true |
|
|
|
|
|
|
|
|
|
|
|
belongs_to :target_account, |
|
|
|
belongs_to :target_account, |
|
|
|
class_name: 'Account', |
|
|
|
class_name: 'Account', |
|
|
|
counter_cache: :followers_count, |
|
|
|
counter_cache: :followers_count, |
|
|
|