File size: 419 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
exports.up = function(r, conn) {
return r
.tableCreate('communitySettings')
.run(conn)
.then(() =>
r
.table('communitySettings')
.indexCreate('communityId', r.row('communityId'))
.run(conn)
)
.catch(err => {
console.log(err);
throw err;
});
};
exports.down = function(r, conn) {
return Promise.all([r.tableDrop('communitySettings').run(conn)]);
};
|