Class: ActualDbSchema::Commands::Rollback

Inherits:
Base
  • Object
show all
Includes:
ActionView::Helpers::TextHelper, OutputFormatter
Defined in:
lib/actual_db_schema/commands/rollback.rb

Overview

Rolls back all phantom migrations

Constant Summary

Constants included from OutputFormatter

OutputFormatter::UNICODE_COLORS

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods included from OutputFormatter

#colorize

Methods inherited from Base

#call

Constructor Details

#initialize(context, manual_mode: false) ⇒ Rollback

Returns a new instance of Rollback.



10
11
12
13
# File 'lib/actual_db_schema/commands/rollback.rb', line 10

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