Class: DBGeni::DmlCLI

Inherits:
MigrationCLI show all
Defined in:
lib/dbgeni/dml_cli.rb

Constant Summary collapse

BEFORE_UP_RUN_PLUGIN =
:before_dml_up
AFTER_UP_RUN_PLUGIN =
:after_dml_up
BEFORE_DOWN_RUN_PLUGIN =
:before_dml_down
AFTER_DOWN_RUN_PLUGIN =
:after_dml_down
BEFORE_RUNNING_PLUGIN =
:before_running_dml
AFTER_RUNNING_PLUGIN =
:after_running_dml

Instance Method Summary collapse

Methods inherited from MigrationCLI

#applied_and_broken_migrations, #applied_migrations, #apply_all_migrations, #apply_list_of_migrations, #apply_migration, #apply_next_migration, #apply_until_migration, #initialize, #list_of_migrations, #outstanding_migrations, #rollback_all_migrations, #rollback_last_migration, #rollback_list_of_migrations, #rollback_migration, #rollback_until_migration

Constructor Details

This class inherits a constructor from DBGeni::MigrationCLI

Instance Method Details

#migrationsObject


12
13
14
15
# File 'lib/dbgeni/dml_cli.rb', line 12

def migrations
  @migration_list ||= DBGeni::MigrationList.new_dml_migrations(@config.dml_directory) unless @migration_list
  @migration_list.migrations
end