Exception: ActiveRecord::UnknownMigrationVersionError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::UnknownMigrationVersionError
- Defined in:
- activerecord/lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(version = nil) ⇒ UnknownMigrationVersionError
constructor
A new instance of UnknownMigrationVersionError.
Constructor Details
#initialize(version = nil) ⇒ UnknownMigrationVersionError
Returns a new instance of UnknownMigrationVersionError.
113 114 115 116 117 118 119 |
# File 'activerecord/lib/active_record/migration.rb', line 113 def initialize(version = nil) if version super("No migration with version number #{version}.") else super("Unknown migration version.") end end |