app/models/user.rb
Class User
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class User < ApplicationRecord
has_many :microposts, dependent: :destroy
has_many :active_relationships, class_name: 'Relationship', foreign_key: 'follower_id', dependent: :destroy
has_many :passive_relationships, class_name: 'Relationship', foreign_key: 'followed_id', dependent: :destroy