Project

General

Profile

Actions

Refactor #21024

closed

Reorder ActiveRecord associations in order of use

Added by Anonymous almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Blocks Foreman - Tracker #20948: Rails 5.1 upgrade tasksClosed09/16/2017

Actions
Actions

Also available in: Atom PDF