Class: LolDba::SqlGenerator
- Inherits:
-
Object
- Object
- LolDba::SqlGenerator
- Defined in:
- lib/lol_dba/sql_migrations/sql_generator.rb
Instance Method Summary collapse
-
#initialize(which) ⇒ SqlGenerator
constructor
A new instance of SqlGenerator.
- #run ⇒ Object
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
#run ⇒ Object
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 |