Skip to content

Instantly share code, notes, and snippets.

@byroot
Created November 19, 2010 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byroot/706860 to your computer and use it in GitHub Desktop.
Save byroot/706860 to your computer and use it in GitHub Desktop.
class Recette < AR::Base
has_many :ingredients
end
class Ingredient < AR::Base
belongs_to :recette
has_one :ingedient_type
end
class IngredientType < AR::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment