Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const User = require('../models/User');
- module.exports = {
- up() {
- return User.sync({})
- .then(() => {
- return User.create({
- fullName: 'Full name',
- email: 'name@mail.com',
- password: '123456'
- });
- });
- },
- down(query) {
- return query.dropTable('users');
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement