Class: Databasion::BuildMigration

Inherits:
Object
  • Object
show all
Defined in:
lib/databasion/build_migration.rb

Constant Summary collapse

@@migration_start =
100

Class Method Summary collapse

Class Method Details

.run(file_list = [], config = nil, opts = nil) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/databasion/build_migration.rb', line 13

def self.run(file_list=[], config=nil, opts=nil)
  raise BuildMigrationError, 'Databasion::BuildMigration requires an array list of files.  Try GoogleLoading first.' if file_list.empty?
  raise BuildMigrationError, 'Databasion::BuildMigration requires a parsed YAML config.' if config.nil?
  @@config = config
  @@environment = opts[:env]
  parse(file_list)
end