Created
December 5, 2019 14:10
-
-
Save speratus/cda0eca8b6bda2127a1cdd11260a6ff3 to your computer and use it in GitHub Desktop.
Custom column names in ActiveRecord Act 1 UserRecipe join 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 UserRecipe < ActiveRecord::Base | |
belongs_to :user | |
belongs_to :recipe | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment