refactor all model relations using ActiveRecord