Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queryInterface.createTable('MyTable', {
- id: {
- type: Sequelize.INTEGER,
- primaryKey: true,
- autoIncrement: true
- },
- SomeTableId: {
- type: Sequelize.INTEGER,
- references: { model: 'static.SomeTable', key: 'id'},
- allowNull: false
- },
- }, t);
- 'Unhandled rejection SequelizeDatabaseError: relation "static.SomeTable" does not exist'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement