index_name(table_name, options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 963
      def index_name(table_name, options) # :nodoc:
        if Hash === options
          if options[:column]
            generate_index_name(table_name, options[:column])
          elsif options[:name]
            options[:name]
          else
            raise ArgumentError, "You must specify the index name"
          end
        else
          index_name(table_name, index_name_options(options))
        end
      end
Register or log in to add new notes.