SSL setup: https://vimeo.com/209534466
rails g migration CreateJoinTableGameInvitesInvitees game_invites invitees
- Models linked together must be in alphabetical order when naming the migration file
- The columns can be given any names as long as they are correctly associated in the model file:
has_and_belongs_to_many :invitees, class_name: 'User', foreign_key: 'invitee_id', #the associated column and the alien model
join_table: 'game_invites_invitees', #name of the join table
association_foreign_key: 'game_invite_id' #the name of the domestic model in the join table