Method: Combustion::Database::Migrate#call

Defined in:
lib/combustion/database/migrate.rb

#callObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/combustion/database/migrate.rb', line 8

def call
  ar_gate = Combustion::VersionGate.new("activerecord")

  if ar_gate.call(">= 5.2")
    migration_context.migrate
  elsif ar_gate.call(">= 3.1")
    migrator.migrate paths, nil
  else
    paths.each { |path| migrator.migrate path, nil }
  end
end