Version: v0.8.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