Module: Departure

Defined in:
lib/departure/runner.rb,
lib/departure.rb,
lib/departure/dsn.rb,
lib/departure/errors.rb,
lib/departure/logger.rb,
lib/departure/option.rb,
lib/departure/command.rb,
lib/departure/railtie.rb,
lib/departure/version.rb,
lib/departure/db_client.rb,
lib/departure/migration.rb,
lib/departure/null_logger.rb,
lib/departure/user_options.rb,
lib/departure/cli_generator.rb,
lib/departure/configuration.rb,
lib/departure/rails_adapter.rb,
lib/departure/alter_argument.rb,
lib/departure/logger_factory.rb,
lib/departure/connection_base.rb,
lib/departure/connection_details.rb,
lib/departure/log_sanitizers/password_sanitizer.rb,
lib/departure/rails_patches/active_record_migrator_with_advisory_lock_patch.rb

Overview

Runner is deprecated and used in rails 8.0 and below We will slowly reduce the responsibility of departure to be delegating all calls to underlying adapters/connections

Defined Under Namespace

Modules: LogSanitizers, LoggerFactory, Migration, RailsPatches Classes: AlterArgument, ArgumentsNotSupported, CliGenerator, Command, CommandNotFoundError, Configuration, ConnectionBase, ConnectionDetails, DSN, DbClient, Error, InvalidAlterStatement, Logger, NoStatusError, NullLogger, Option, OriginalAdapterConnection, RailsAdapter, Railtie, Runner, SignalError, UserOptions

Constant Summary collapse

VERSION =
'8.0.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



30
31
32
# File 'lib/departure.rb', line 30

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



33
34
35
36
# File 'lib/departure.rb', line 33

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.loadObject



38
39
40
# File 'lib/departure.rb', line 38

def self.load
  # No-op left for compatibility
end