Exception: ActiveRecord::DuplicateMigrationVersionError

Inherits:
MigrationError show all
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

Constructor Details

#initialize(version = nil) ⇒ DuplicateMigrationVersionError

Returns a new instance of DuplicateMigrationVersionError.



94
95
96
97
98
99
100
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb', line 94

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