Created
August 29, 2013 16:07
-
-
Save anonymous/6380082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i'm not sure if i get everything right? what exactly would be wrong with: | |
class Show | |
has_many :episodes | |
end | |
class Episode | |
belongs_to :show | |
has_many :embeds | |
end | |
class Embed | |
belongs_to :episode | |
end | |
..forein_key always on the model that has the belongs_to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment