Sha256: 38e442f6173a01b8074a0ad64cd347b09d07c35a2f83c1c0eb2d680dd201d3b7

Contents?: true

Size: 234 Bytes

Versions: 22

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

class Document < ActiveRecord::Base
  has_many :children, class_name: 'Document', foreign_key: 'parent_id'
  belongs_to :parent, class_name: 'Document', foreign_key: 'parent_id'
  belongs_to :author
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bullet-7.0.7 spec/models/document.rb
bullet-7.0.6 spec/models/document.rb
bullet-7.0.5 spec/models/document.rb
bullet-7.0.4 spec/models/document.rb
bullet-7.0.3 spec/models/document.rb
bullet-7.0.2 spec/models/document.rb
bullet-7.0.1 spec/models/document.rb
bullet-7.0.0 spec/models/document.rb
bullet-6.1.5 spec/models/document.rb
bullet-6.1.4 spec/models/document.rb
bullet-6.1.3 spec/models/document.rb
bullet-6.1.2 spec/models/document.rb
bullet-6.1.1 spec/models/document.rb
bullet-6.1.0 spec/models/document.rb
bullet-6.0.2 spec/models/document.rb
bullet-6.0.1 spec/models/document.rb
bullet-6.0.0 spec/models/document.rb
bullet-5.9.0 spec/models/document.rb
bullet-5.8.1 spec/models/document.rb
bullet-5.8.0 spec/models/document.rb