Sha256: ed1e39cb5cd2cce944974964a035f27a2cda1b41325675dc01e21b4166dce65d

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

class ActiveRecord::Migrator
  module DesertMigrator
    def latest_version
      return 0 if migration_classes.empty?
      migration_classes.last.first
    end

    def migration_classes_with_caching
      @migration_classes ||= migration_classes_without_caching
    end
  end
  include DesertMigrator
  alias_method_chain :migration_classes, :caching
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
desert-0.1.1 lib/desert/rails/migrator.rb