Exception: ActiveRecord::UnknownMigrationVersionError

Inherits:
MigrationError show all
Defined in:
lib/active_record/migration.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(version = nil) ⇒ UnknownMigrationVersionError

Returns a new instance of UnknownMigrationVersionError.



108
109
110
111
112
113
114
# File 'lib/active_record/migration.rb', line 108

def initialize(version = nil)
  if version
    super("No migration with version number #{version}.")
  else
    super("Unknown migration version.")
  end
end