Method: ActiveRecord::UnknownMigrationVersionError#initialize

Defined in:
lib/active_record/migration.rb

#initialize(version = nil) ⇒ UnknownMigrationVersionError

Returns a new instance of UnknownMigrationVersionError.



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

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