Exception: ActiveRecord::DuplicateMigrationNameError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) ⇒ DuplicateMigrationNameError

Returns a new instance of DuplicateMigrationNameError.



100
101
102
103
104
105
106
# File 'lib/active_record/migration.rb', line 100

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