不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 9d090481 by Mick Hansen

Merge pull request #2902 from ClimbsRocks/patch-3

Changed periods to colons before code snippets
2 parents 46671a0e 5cb734fd
Showing with 4 additions and 4 deletions
......@@ -40,7 +40,7 @@ $ npm install --save mariasql # for mariasql
## Connecting to the database
Open the created directory in your favorite text editor and add a new file called `app.js` with the following content.
Open the created directory in your favorite text editor and add a new file called `app.js` with the following content:
```js
var Sequelize = require('sequelize')
......@@ -83,7 +83,7 @@ This will define a user model that has a username and password. Furthermore, Seq
### Synchronizing the schema
As we want to store data in the database, we need to create a representation of the model.
As we want to store data in the database, we need to create a representation of the model:
```js
sequelize
......@@ -107,7 +107,7 @@ Please note, that `{ force: true }` will drop the `Users` table and re-create it
### Configuration
You might not need the timestamps or you might not want the plural of the model's name as table name, right? Luckily there are configuration possibilities for that.
You might not need the timestamps or you might not want the plural of the model's name as table name, right? Luckily there are configuration possibilities for that:
```js
var User = sequelize.define('User', {
......@@ -352,7 +352,7 @@ return sequelize.Promise.all([
## A combined example
Now that you know the basics of Sequelize, you might want to see everything in a single program.
Now that you know the basics of Sequelize, you might want to see everything in a single program:
```js
var Sequelize = require('sequelize')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!