Skip to content

Instantly share code, notes, and snippets.

@jfreeze
Created October 10, 2010 14:47
Show Gist options
  • Save jfreeze/619293 to your computer and use it in GitHub Desktop.
Save jfreeze/619293 to your computer and use it in GitHub Desktop.
class A < Sequel::Model
one_to_many :bs
one_to_one :active_b, :class => B
# Integer :b_id
end
class B < Sequel::Model
many_to_one :as
# Integer a_id for the one_to_many above
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment