lib/schema_plus/indexes/middleware/migration.rb
def after(env)
          return unless env.options[:index]
          case env.operation
          when :add, :record
            env.caller.add_index(env.table_name, env.column_name, env.options[:index])
          end
        end
# Support :index option in Migration.add_column
Support :index option in Migration.add_column
Support : index option in Migration . add_column
def after(env)
          return unless env.options[:index]
          case env.operation
          when :add, :record
            env.caller.add_index(env.table_name, env.column_name, env.options[:index])
          end
        end
def after ( env ) return unless env . options [ :index ] case env . operation when :add , :record env . caller . add_index ( env . table_name , env . column_name , env . options [ :index ] ) end end
Support :index option in Migration.add_column
Support : index option in Migration . add_column
env