Module: Archivist

Defined in:
lib/archivist.rb,
lib/archivist/base.rb,
lib/archivist/archive.rb,
lib/archivist/base/db.rb,
lib/archivist/migration.rb

Defined Under Namespace

Modules: ArchiveMethods, Base, Migration

Class Method Summary collapse

Class Method Details

.update(*models) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/archivist.rb', line 15

def self.update(*models)
  models.each do |klass|
    if klass.respond_to?(:has_archive) && klass.has_archive?
      klass.create_archive_table
      klass.create_archive_indexes
    end
  end
end