Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Db.createIndex

Db.createIndex($tableName, $colName) -> boolean

Description

Create an index on the given column.

$wasCreated = Db.createTable('users', {
    userId: 'int',
    email: 'varchar(255)',
})

//= true

See Also