Sha256: 768008966fc0e90f9fbb6007cbe05453d198c90701ceb88df05f87d9303ef04b

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

# name           - string
# archival_id    - integer
# archive_number - string
# archived_at    - datetime
class Archival < ActiveRecord::Base

  acts_as_archival

  has_many :archivals,          dependent: :destroy
  has_many :archival_kids,      dependent: :destroy
  has_many :archival_grandkids, dependent: :destroy, through: :archival_kids
  has_many :exploders,          dependent: :destroy
  has_many :plains,             dependent: :destroy
  has_many :polys,              dependent: :destroy, as: :archiveable
  has_many :independent_archivals

  scope :bobs, -> { where(name: %w[Bob Bobby Robert]) }

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acts_as_archival-2.1.0 test/fixtures/archival.rb
acts_as_archival-2.0.0 test/fixtures/archival.rb
acts_as_archival-1.4.0 test/fixtures/archival.rb
acts_as_archival-1.3.0 test/fixtures/archival.rb
acts_as_archival-1.2.0 test/fixtures/archival.rb