Sha256: 97616917f93d0c09d30b24ea66da11c0d7ee394b2721422c577b12615c272f75
Contents?: true
Size: 547 Bytes
Versions: 17
Compression:
Stored size: 547 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../require") Require.lib! module ActsAsArchive def self.update(*models) models.each do |klass| if klass.respond_to?(:acts_as_archive?) && klass.acts_as_archive? time = Benchmark.measure do klass.create_archive_table klass.migrate_from_acts_as_paranoid klass.create_archive_indexes end $stdout.puts "-- ActsAsArchive.update(#{models.join(', ')})" $stdout.puts " -> #{"%.4fs" % time.real}" end end end end
Version data entries
17 entries across 17 versions & 5 rubygems