Module: ActiveRecord::ConnectionAdapters::SchemaStatements
- Defined in:
- lib/ridgepole/execute_expander.rb
Instance Method Summary collapse
- #add_index_with_noop(table_name, column_name, options = {}) ⇒ Object
- #remove_index_with_noop(table_name, options = {}) ⇒ Object
Instance Method Details
#add_index_with_noop(table_name, column_name, options = {}) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/ridgepole/execute_expander.rb', line 47 def add_index_with_noop(table_name, column_name, = {}) begin add_index_without_noop(table_name, column_name, ) rescue => e raise e unless Ridgepole::ExecuteExpander.noop end end |
#remove_index_with_noop(table_name, options = {}) ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/ridgepole/execute_expander.rb', line 56 def remove_index_with_noop(table_name, = {}) begin remove_index_without_noop(table_name, ) rescue => e raise e unless Ridgepole::ExecuteExpander.noop end end |