Flowdock
add_index_sort_order(quoted_columns, **options) private

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 1182
        def add_index_sort_order(quoted_columns, **options)
          if order = options[:order]
            case order
            when Hash
              order = order.symbolize_keys
              quoted_columns.each { |name, column| column << " #{order[name].upcase}" if order[name].present? }
            when String
              quoted_columns.each { |name, column| column << " #{order.upcase}" if order.present? }
            end
          end

          quoted_columns
        end
Register or log in to add new notes.