Method: Hanami::Model::Migrator#rollback

Defined in:
lib/hanami/model/migrator.rb

#rollback(steps: 1) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

See Also:

Since:

  • 1.1.0



312
313
314
# File 'lib/hanami/model/migrator.rb', line 312

def rollback(steps: 1)
  adapter.rollback(migrations, steps.abs) if migrations?
end