Class: FluentMigratorCommandRunner::CommandBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent-migrator-command-runner/command_builder.rb

Class Method Summary collapse

Class Method Details

.build(migration_options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/fluent-migrator-command-runner/command_builder.rb', line 5

def self.build(migration_options = {})
 if FigNewton.migration_provider == 'sqlserver' 
   command = SqlServerMigrationCommand.new(migration_options)
 else
   command = OracleMigrationCommand.new(migration_options)
 end
	command.build
end