Method: Sequel::Migrator.check_current

Defined in:
lib/sequel/extensions/migration.rb

.check_current(*args) ⇒ Object

Raise a NotCurrentError unless the migrator is current, takes the same arguments as #run.

Raises:

[View source]

396
397
398
# File 'lib/sequel/extensions/migration.rb', line 396

def self.check_current(*args)
  raise(NotCurrentError, 'current migration version does not match latest available version') unless is_current?(*args)
end