Module: SequelData::Migrate

Extended by:
Dry::Configurable
Defined in:
lib/sequel_data/migrate.rb,
lib/sequel_data/migrate/errors.rb,
lib/sequel_data/migrate/version.rb,
lib/sequel_data/migrate/migrator.rb,
lib/sequel_data/migrate/generator.rb,
lib/sequel_data/migrate/migration.rb

Defined Under Namespace

Classes: ConfigurationError, Error, Generator, Migration, MigrationError, Migrator

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.create_migration(name) ⇒ Object



32
33
34
# File 'lib/sequel_data/migrate.rb', line 32

def self.create_migration(name)
  Generator.new(config).create_migration(name)
end

.migrateObject



24
25
26
# File 'lib/sequel_data/migrate.rb', line 24

def self.migrate
  Migrator.new(config).migrate
end

.rollback(step = 1) ⇒ Object



28
29
30
# File 'lib/sequel_data/migrate.rb', line 28

def self.rollback(step = 1)
  Migrator.new(config).rollback(step)
end