react-code-dataset / spectrum /api /migrations /20171029090619-users-channels-index.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
exports.up = function(r, conn) {
return r
.table('usersChannels')
.indexCreate('userIdAndChannelId', [r.row('userId'), r.row('channelId')])
.run(conn);
};
exports.down = function(r, conn) {
return r
.table('usersChannels')
.indexDrop('userIdAndChannelId')
.run(conn);
};