mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11 lines
251 B
Ruby
11 lines
251 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class DlKeyedJoin < ActiveRecord::Base
|
||
|
self.primary_key = "joins_key"
|
||
|
|
||
|
belongs_to :destroy_async_parent,
|
||
|
primary_key: :parent_id
|
||
|
belongs_to :dl_keyed_has_many_through,
|
||
|
primary_key: :through_key
|
||
|
end
|