Download spectrum/api/migrations/20171029094352-users-threads-index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/20171029094352-users-threads-index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/migrations/20171029094352-users-threads-index.js
-
curl -L -o 20171029094352-users-threads-index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/20171029094352-users-threads-index.js
295 Bytes
| exports.up = function(r, conn) { | |
| return r | |
| .table('usersThreads') | |
| .indexCreate('userIdAndThreadId', [r.row('userId'), r.row('threadId')]) | |
| .run(conn); | |
| }; | |
| exports.down = function(r, conn) { | |
| return r | |
| .table('usersThreads') | |
| .indexDrop('userIdAndThreadId') | |
| .run(conn); | |
| }; | |