Sha256: 77e57445521cb460feecddb095df8bc084bed71f787e77e47517601d8bfca316

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

class Book < ActiveRecord::Base
  belongs_to :topic, inverse_of: :books
  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

9 entries across 9 versions & 2 rubygems

Version Path
activerecord-import-0.16.2 test/models/book.rb
activerecord-import-0.16.1 test/models/book.rb
activerecord-import-0.16.0 test/models/book.rb
activerecord-import-uuid-0.2 test/models/book.rb
activerecord-import-uuid-0.1 test/models/book.rb
activerecord-import-0.15.0 test/models/book.rb
activerecord-import-0.14.1 test/models/book.rb
activerecord-import-0.14.0 test/models/book.rb
activerecord-import-0.13.0 test/models/book.rb