Created
December 5, 2019 14:07
-
-
Save speratus/450e999e433a6ac1d79be61f3c92a634 to your computer and use it in GitHub Desktop.
Custom column names in ActiveRecord Act 1 User class
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 < ActiveRecord::Base | |
has_many :user_recipes | |
has_many :recipes, through: :user_recipes | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment