Exception: ActiveRecord::DuplicateMigrationVersionError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::DuplicateMigrationVersionError
- Defined in:
- lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(version = nil) ⇒ DuplicateMigrationVersionError
constructor
A new instance of DuplicateMigrationVersionError.
Constructor Details
#initialize(version = nil) ⇒ DuplicateMigrationVersionError
Returns a new instance of DuplicateMigrationVersionError.
90 91 92 93 94 95 96 |
# File 'lib/active_record/migration.rb', line 90 def initialize(version = nil) if version super("Multiple migrations have the version number #{version}.") else super("Duplicate migration version error.") end end |