Class: LolDba::SqlGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_dba/sql_migrations/sql_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(which) ⇒ SqlGenerator



3
4
5
# File 'lib/lol_dba/sql_migrations/sql_generator.rb', line 3

def initialize(which)
  @which = which
end

Instance Method Details

#runObject



7
8
9
10
11
12
# File 'lib/lol_dba/sql_migrations/sql_generator.rb', line 7

def run
  LolDba::Writer.reset_output_dir
  migrations(@which).each do |file|
    LolDba::Migration.new(file).up
  end
end