I’ve generated 2 models (Player and Trainer) with the “generate scaffold” command with the following tables:
I’ve set the association in the Player model class (belongs_to :trainer) and in the Trainer model class (has_many :player).
How to make this relationship effective? Should I just type rails generate migration ? Should I add some arguments?
I want the trainer to be connected to the player . Thank you for your assitance. I really appreciate.