Add inverse_of to both user and course model