Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User < Sequel::Model
- one_to_many :contributions, :class => :Link, :key => :owner_id
- many_to_many :starred_links, :class => :Link, :order => :created_at,
- :join_table => :starred_links, :left_key => :user_id, :right_key => :link_id
- end
Add Comment
Please, Sign In to add comment