Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit c22f8214
authored
Sep 23, 2017
by
Sushant
Committed by
GitHub
Sep 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(migration): incorrect seed command
1 parent
7229ccb9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
docs/migrations.md
docs/migrations.md
View file @
c22f821
...
...
@@ -129,7 +129,7 @@ Now we should edit this file to insert demo user to `User` table.
module
.
exports
=
{
up
:
(
queryInterface
,
Sequelize
)
=>
{
return
queryInterface
.
bulkInsert
(
'User'
,
[{
return
queryInterface
.
bulkInsert
(
'User
s
'
,
[{
firstName
:
'John'
,
lastName
:
'Doe'
,
email
:
'demo@demo.com'
...
...
@@ -137,7 +137,7 @@ module.exports = {
},
down
:
(
queryInterface
,
Sequelize
)
=>
{
return
queryInterface
.
bulkDelete
(
'User'
,
null
,
{});
return
queryInterface
.
bulkDelete
(
'User
s
'
,
null
,
{});
}
};
...
...
@@ -147,7 +147,7 @@ module.exports = {
In last step you have create a seed file. Its still not committed to database. To do that we need to run a simple command.
```
bash
$
node_modules/.bin/sequelize db:seed
$
node_modules/.bin/sequelize db:seed
:all
```
This will execute that seed file and you will have a demo user inserted into
`User`
table.
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment