Sha256: 549ea865e06e78d3d5b476101e1a1d6fbaae7198a10c17feddf756b73333762c

Contents?: true

Size: 314 Bytes

Versions: 2

Compression:

Stored size: 314 Bytes

Contents

#require it, only when needed!

if Imigrate.activated == true
  class ActiveRecord::MigrationProxy
    def initialize(name, version, filename, scope)
      if Imigrate.env_prefix.present?
        version = "#{Imigrate.env_prefix}#{version}"
      end

      super(name, version, filename, scope)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
imigrate-0.9.3 lib/imigrate/activerecord_ext.rb
imigrate-0.9.2 lib/imigrate/activerecord_ext.rb