Add references to relation for Rails 4