Self Referencing Association in Ruby on Rails


has_many :users, class_name: 'User'
belongs_to :manager, class_name: 'User', optional: true
Caffeinated Developer