Module: ActiveRecord::ConnectionAdapters::SchemaStatements
- Defined in:
- lib/activerecord/simple_index_name/active_record_ext.rb
Instance Method Summary collapse
Instance Method Details
#index_name_with_simple(table_name, options) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/activerecord/simple_index_name/active_record_ext.rb', line 4 def index_name_with_simple(table_name, ) if Hash === && [:column] Array.wrap([:column]) * "_and_" else index_name_without_simple(table_name, ) end end |