Sha256: a462885b807e7103e218fe7dc131f0a64c6d41720b5dc65abbc61782a00e996c

Contents?: true

Size: 322 Bytes

Versions: 36

Compression:

Stored size: 322 Bytes

Contents

class Book < ActiveRecord::Base
  belongs_to :topic, inverse_of: :books
  belongs_to :tag, foreign_key: [:tag_id, :parent_id]

  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

36 entries across 36 versions & 2 rubygems

Version Path
activerecord-import-1.4.0 test/models/book.rb
activerecord-import-1.3.0 test/models/book.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/activerecord-import-1.2.0/test/models/book.rb
activerecord-import-1.2.0 test/models/book.rb
activerecord-import-1.1.0 test/models/book.rb
activerecord-import-1.0.8 test/models/book.rb
activerecord-import-1.0.7 test/models/book.rb
activerecord-import-1.0.6 test/models/book.rb
activerecord-import-1.0.5 test/models/book.rb
activerecord-import-1.0.4 test/models/book.rb
activerecord-import-1.0.3 test/models/book.rb
activerecord-import-1.0.2 test/models/book.rb
activerecord-import-1.0.1 test/models/book.rb
activerecord-import-1.0.0 test/models/book.rb
activerecord-import-0.28.2 test/models/book.rb
activerecord-import-0.28.1 test/models/book.rb
activerecord-import-0.28.0 test/models/book.rb
activerecord-import-0.27.0 test/models/book.rb
activerecord-import-0.26.0 test/models/book.rb
activerecord-import-0.25.0 test/models/book.rb