Module: DbCompile
- Defined in:
- lib/dbcompile.rb,
lib/dbcompile/view.rb,
lib/dbcompile/trigger.rb,
lib/dbcompile/function.rb,
lib/dbcompile/construct.rb,
lib/dbcompile/transaction.rb
Defined Under Namespace
Classes: CircularDependenciesException, Construct, Function, Task, Transaction, Trigger, View
Class Method Summary collapse
Class Method Details
.build_transaction(path = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dbcompile.rb', line 9 def self.build_transaction(path=nil) if not path path = File.join(Rails.root, 'db') end transaction = Transaction.new(path) transaction.execute if not transaction.verify exit 1 end end |