Sha256: 28ead11b23968ac7175879586d9741ac6e419567d32f6122cf1bf9f79c285fd3

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

#Monkey Patch to not allow usage of VERSION in migration since log4r returns nil instead of true
module ActiveRecord
  class Migrator
    
  def migrate
    migration_classes.each do |(version, migration_class)|
      if reached_target_version?(version)
        Base.logger.info("Reached target version: #{@target_version}")
        return
      end
      next if irrelevant_migration?(version)

      Base.logger.info "Migrating to #{migration_class} (#{version})"
      migration_class.migrate(@direction)
      set_schema_version(version)
    end
  end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revolutionhealth-log4r-2.0.0 lib/rails_patch_for_migrations.rb