Exception: ActiveRecord::DuplicateMigrationNameError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) ⇒ DuplicateMigrationNameError

Returns a new instance of DuplicateMigrationNameError.


104
105
106
107
108
109
110
# File 'activerecord/lib/active_record/migration.rb', line 104

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