Module: Archivist
- Defined in:
- lib/archivist.rb,
lib/archivist/base.rb,
lib/archivist/archive.rb,
lib/archivist/base/db.rb,
lib/archivist/version.rb,
lib/archivist/migration.rb
Defined Under Namespace
Modules: ArchiveMethods, Base, Migration, VERSION
Class Method Summary collapse
Class Method Details
.update(*models) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/archivist.rb', line 14 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 |