Method: ActiveRecord::ConnectionAdapters::SchemaStatements#index_algorithm

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

#index_algorithm(algorithm) ⇒ Object

:nodoc:



1504
1505
1506
1507
1508
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 1504

def index_algorithm(algorithm) # :nodoc:
  index_algorithms.fetch(algorithm) do
    raise ArgumentError, "Algorithm must be one of the following: #{index_algorithms.keys.map(&:inspect).join(', ')}"
  end if algorithm
end