Sha256: 217a4298c4fa627d7c37008c682c48df07aebe8328c1110e30a00874dde9ff3a
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
# frozen_string_literal: true class TagAlias < ActiveRecord::Base unless ENV["SKIP_COMPOSITE_PK"] if ENV['AR_VERSION'].to_f <= 7.0 || ENV['AR_VERSION'].to_f >= 8.0 belongs_to :tag, foreign_key: [:tag_id, :parent_id], required: true else belongs_to :tag, query_constraints: [:tag_id, :parent_id], required: true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-import-2.1.0 | test/models/tag_alias.rb |
activerecord-import-2.0.0 | test/models/tag_alias.rb |