Sha256: 68e70a89fa1bc9f92ddbf425e5e30ee49036f447fd3c466b8facca6c701b6160
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 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 class ActiveRecord::Migrator private def ran?(migration) migrated.include?(migration.version) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
imigrate-0.9.1 | lib/imigrate/activerecord_ext.rb |
imigrate-0.9.0 | lib/imigrate/activerecord_ext.rb |