Associations and Math between Models

Where do you think 'model_1_id' is being defined here?