node-migrate icon indicating copy to clipboard operation
node-migrate copied to clipboard

Object #<CreateTable> has no method 'create'

Open brihogan opened this issue 14 years ago • 0 comments

Seems like the .create function isn't working when building table rows. The readme shows: t.create('score', 'integer', {limit: 8}) But, that dosen't seem to work. I'd prefer the create function rather than a function named after the datatype - but maybe that's just me. Anyway, great module. Thanks for building!

$ node migrate.js migrate

undefined:4 t.create('id', 'integer', {not_null:true} ); ^ TypeError: Object #<CreateTable> has no method 'create'

brihogan avatar Feb 27 '11 22:02 brihogan