Sha256: b747519a78ed7b764cfc0a14d69142d0bfacf2437abec3d7a1442d17965649ab
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true class Book < ActiveRecord::Base belongs_to :topic, inverse_of: :books belongs_to :tag, foreign_key: [:tag_id, :parent_id] unless ENV["SKIP_COMPOSITE_PK"] has_many :chapters, inverse_of: :book has_many :discounts, as: :discountable has_many :end_notes, inverse_of: :book enum status: [:draft, :published] if ENV['AR_VERSION'].to_f >= 4.1 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-import-1.6.0 | test/models/book.rb |
activerecord-import-1.5.1 | test/models/book.rb |