Skip to content

Instantly share code, notes, and snippets.

@speratus
Created December 5, 2019 14:10
Show Gist options
  • Save speratus/cda0eca8b6bda2127a1cdd11260a6ff3 to your computer and use it in GitHub Desktop.
Save speratus/cda0eca8b6bda2127a1cdd11260a6ff3 to your computer and use it in GitHub Desktop.
Custom column names in ActiveRecord Act 1 UserRecipe join class
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