Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. queryInterface.createTable('MyTable', {
  2. id: {
  3. type: Sequelize.INTEGER,
  4. primaryKey: true,
  5. autoIncrement: true
  6. },
  7. SomeTableId: {
  8. type: Sequelize.INTEGER,
  9. references: { model: 'static.SomeTable', key: 'id'},
  10. allowNull: false
  11. },
  12.  
  13. }, t);
  14.  
  15. 'Unhandled rejection SequelizeDatabaseError: relation "static.SomeTable" does not exist'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement