Module: DbAgile::Contract::Robust::Optimistic::Schema::TransactionDriven
- Included in:
- DbAgile::Contract::Robust::Optimistic
- Defined in:
- lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb
Instance Method Summary collapse
- #add_columns(*args, &block) ⇒ Object
- #create_table(*args, &block) ⇒ Object
- #drop_table(*args, &block) ⇒ Object
- #key!(*args, &block) ⇒ Object
Instance Method Details
#add_columns(*args, &block) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb', line 25 def add_columns(*args, &block) delegate.add_columns(*args, &block) rescue has_table!(args[1]) raise end |
#create_table(*args, &block) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb', line 9 def create_table(*args, &block) delegate.create_table(*args, &block) rescue not_has_table!(args[1]) raise end |
#drop_table(*args, &block) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb', line 17 def drop_table(*args, &block) delegate.drop_table(*args, &block) rescue has_table!(args[1]) raise end |
#key!(*args, &block) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb', line 33 def key!(*args, &block) delegate.key!(*args, &block) rescue has_table!(args[1]) raise end |