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