Class: ActualDbSchema::Commands::Rollback

Inherits:
Base
  • Object
show all
Defined in:
lib/actual_db_schema/commands/rollback.rb

Overview

Rolls back all phantom migrations

Constant Summary collapse

UNICODE_COLORS =
{
  red: 31,
  green: 32,
  yellow: 33
}.freeze

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(context, manual_mode: false) ⇒ Rollback

Returns a new instance of Rollback.



13
14
15
16
# File 'lib/actual_db_schema/commands/rollback.rb', line 13

def initialize(context, manual_mode: false)
  @manual_mode = manual_mode || manual_mode_default?
  super(context)
end