Module: SchemaPlusPgIndexes::ActiveRecord::ConnectionAdapters::PostgresqlAdapter
- Defined in:
- lib/schema_plus_pg_indexes/active_record/connection_adapters/postgresql_adapter.rb
Instance Method Summary collapse
-
#add_index(table_name, column_names, options = {}) ⇒ Object
SchemaPlusPgIndexes allows the column_names paramter to be left off.
Instance Method Details
#add_index(table_name, column_names, options = {}) ⇒ Object
SchemaPlusPgIndexes allows the column_names paramter to be left off
9 10 11 12 |
# File 'lib/schema_plus_pg_indexes/active_record/connection_adapters/postgresql_adapter.rb', line 9 def add_index(table_name, column_names, ={}) column_names, = [nil, column_names] if column_names.is_a? Hash super table_name, column_names, end |