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

You need to sign in or sign up before continuing.
Commit c3e54f15 by Meg Sharkey

don't use decimals in table names

1 parent 8085b6b1
Showing with 3 additions and 2 deletions
...@@ -7,8 +7,9 @@ describe('HasMany', function() { ...@@ -7,8 +7,9 @@ describe('HasMany', function() {
beforeEach(function() { Helpers.sync() }) beforeEach(function() { Helpers.sync() })
afterEach(function() { Helpers.drop() }) afterEach(function() { Helpers.drop() })
var User = sequelize.define('User' + Math.random(), { name: Sequelize.STRING }) //prevent periods from occurring in the table name since they are used to delimit (table.column)
, Task = sequelize.define('Task' + Math.random(), { name: Sequelize.STRING }) var User = sequelize.define('User' + Math.ceil(Math.random()*10000000), { name: Sequelize.STRING })
, Task = sequelize.define('Task' + Math.ceil(Math.random()*10000000), { name: Sequelize.STRING })
, users = null , users = null
, tasks = null , tasks = null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!