runtime.newBoolean( ! nonUnique ), // unique
runtime.newArray(), // [] for column names, we'll add to that in just a bit
runtime.newArray() // lengths
};
indexes.append( indexDefinition.callMethod(context, "new", args) ); // IndexDefinition.new
}
IRubyObject lastIndexDef = indexes.isEmpty() ? null : indexes.entry(-1);
if ( lastIndexDef != null ) {
final String columnName = caseConvertIdentifierForRails(connection, keySet.getString("column_name"));