Rewrote deprecated Active Record relationship