Exception: ActiveRecord::DuplicateMigrationNameError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::DuplicateMigrationNameError
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ DuplicateMigrationNameError
constructor
A new instance of DuplicateMigrationNameError.
Constructor Details
#initialize(name = nil) ⇒ DuplicateMigrationNameError
Returns a new instance of DuplicateMigrationNameError.
104 105 106 107 108 109 110 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 |