a guest Jul 13th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class User < ActiveRecord::Base
- has_many :users, :class_name => "User", :foreign_key => 'owner_id'
- belongs_to :users
RAW Paste Data