Sha256: 0cb955188e663fd2ecee51b430136a806ec0fcc5b6a78a0e41ce0d582d3b95d4

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

class DlKeyedBelongsTo < ActiveRecord::Base
  self.primary_key = "belongs_key"
  belongs_to :destroy_async_parent,
    dependent: :destroy_async,
    foreign_key: :destroy_async_parent_id,
    primary_key: :parent_id,
    class_name: "DestroyAsyncParent"
  belongs_to :destroy_async_parent_soft_delete,
    dependent: :destroy_async,
    ensuring_owner_was: :deleted?, class_name: "DestroyAsyncParentSoftDelete"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/dl_keyed_belongs_to.rb
ibm_db-5.4.1-x86-mingw32 test/models/dl_keyed_belongs_to.rb
ibm_db-5.4.0-x86-mingw32 test/models/dl_keyed_belongs_to.rb
ibm_db-5.3.2-x86-mingw32 test/models/dl_keyed_belongs_to.rb