Instantly share code, notes, and snippets.

Embed
What would you like to do?
belongs_to :referrer, :class_name => 'User', foreign_key: 'referred_by'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment