Created
August 13, 2015 23:18
-
-
Save lisaSwanson/9643c14b3c08fd8df649 to your computer and use it in GitHub Desktop.
has_many, belongs_to syntax
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
has_many :ratings, foreign_key: :dog_id | |
belongs_to :owner, class_name: "Person" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment