Exception: ActiveRecord::DuplicateMigrationVersionError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(version = nil) ⇒ DuplicateMigrationVersionError

Returns a new instance of DuplicateMigrationVersionError.


88
89
90
91
92
93
94
# File 'activerecord/lib/active_record/migration.rb', line 88

def initialize(version = nil)
  if version
    super("Multiple migrations have the version number #{version}.")
  else
    super("Duplicate migration version error.")
  end
end