Module: Octopus::UnknownMigrationVersionError

Defined in:
lib/octopus/migration.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



219
220
221
222
223
224
# File 'lib/octopus/migration.rb', line 219

def self.included(base)
  base.send :alias_method, :initialize_without_octopus, :initialize
  base.send :alias_method, :initialize, :initialize_with_octopus

  base.send(:attr_accessor, :version)
end

Instance Method Details

#initialize_with_octopus(version) ⇒ Object



226
227
228
229
# File 'lib/octopus/migration.rb', line 226

def initialize_with_octopus(version)
  @version = version
  initialize_without_octopus(version)
end