Thanks @geoffharcourt, I’ll check out the callback docs.
Sorry, I should’ve made my last post more clear - the line:
school_id School.where(name: 'Main').first.id
is what I’m currently using and I wanted to know if the line:
association :school, @main_school
is possible instead. I guess it isn’t.
Thanks for all your help on this. I feel like I’m actually making some progress with testing now!