Class: ActiveRecord::MigrationProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/imigrate/activerecord_ext.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, version, filename, scope) ⇒ MigrationProxy

Returns a new instance of MigrationProxy.



5
6
7
8
9
10
11
# File 'lib/imigrate/activerecord_ext.rb', line 5

def initialize(name, version, filename, scope)
  if Imigrate.env_prefix.present?
    version = "#{Imigrate.env_prefix}#{version}"
  end

  super(name, version, filename, scope)
end