Actions
Refactor #28565
closedDon't use AR's association_scope
Description
association_scope is private in Rails 6 (since https://github.com/rails/rails/commit/0b4cfa2ba3e978386240e0e56a409616cc32fd02):
[...] NoMethodError: private method `association_scope' called for #<ActiveRecord::Associations::HasManyAssociation:0x00000000100e57f8> lib/core_extensions.rb:41:in `block in before_destroy' lib/core_extensions.rb:40:in `each' lib/core_extensions.rb:40:in `before_destroy' [...]
Updated by Anonymous almost 5 years ago
- Related to Bug #11188: on deleting a capsule: Operation FAILED: ERROR: update or delete on table "smart_proxies" violates foreign key constraint "hosts_puppet_ca_proxy_id_fk" on table "hosts" added
Updated by Anonymous almost 5 years ago
- Blocks Tracker #24837: Rails 6.0 Tracker added
Updated by Tomer Brisker almost 5 years ago
- Status changed from New to Assigned
- Assignee set to Tomer Brisker
Updated by The Foreman Bot almost 5 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7318 added
Updated by Tomer Brisker almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset bcfbba25d945f7777abb60b31ce96c3ee7383549.
Actions