Created
July 14, 2017 12:22
-
-
Save roryfranklin/8d585ddf2ec0704e791a7506966f0098 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
class User < ApplicationRecord | |
has_many :reviews, inverse_of: 'author', foreign_key: 'author_id' | |
has_many :cars | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment