Module: ActiveRecord::ConnectionAdapters::SchemaStatements

Defined in:
lib/ridgepole/execute_expander.rb

Instance Method Summary collapse

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, options = {})
  begin
    add_index_without_noop(table_name, column_name, options)
  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, options = {})
  begin
    remove_index_without_noop(table_name, options)
  rescue => e
    raise e unless Ridgepole::ExecuteExpander.noop
  end
end