Reorder ActiveRecord associations in order of use
Fixed in Releases:
Found in Releases:
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.