Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Captain < ActiveRecord::Base
has_many :boats
end
class Boat < ActiveRecord::Base
belongs_to :captain
has_many :boat_classifications
has_many :classifications, through: :boat_classifications
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment