Project

General

Profile

Refactor #21024

Reorder ActiveRecord associations in order of use

Added by Michael Moll almost 2 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

With Rails 5.1

ActiveRecord::HasManyThroughOrderError: Cannot have a has_many :through association 'User#cached_usergroups' which goes through 'User#cached_usergroup_members' before the through association is defined.


Related issues

Blocks Foreman - Tracker #20948: Rails 5.1 upgrade tasksClosed2017-09-16

Associated revisions

Revision 12f8ea80 (diff)
Added by Dominic Cleal almost 2 years ago

Fixes #21024 - Reorder AR associations in order of use

History

#1 Updated by Michael Moll almost 2 years ago

#2 Updated by The Foreman Bot almost 2 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4859 added

#3 Updated by Ivan Necas almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF