Exception: DataMapper::DuplicateMigrationNameError

Inherits:
StandardError show all
Defined in:
lib/gems/dm-migrations-0.9.9/lib/migration.rb

Instance Method Summary collapse

Methods inherited from StandardError

#display

Methods inherited from Exception

json_create, #to_json

Constructor Details

#initialize(migration) ⇒ DuplicateMigrationNameError

Returns a new instance of DuplicateMigrationNameError.



9
10
11
# File 'lib/gems/dm-migrations-0.9.9/lib/migration.rb', line 9

def initialize(migration)
  super("Duplicate Migration Name: '#{migration.name}', version: #{migration.position}")
end