File size: 300 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
};