Create a gist now

Instantly share code, notes, and snippets.

has_one :through
class Employee
belongs_to: :department
has_one :organization, through: :department
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment