{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/5229","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/5229/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5229/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/5229/events","html_url":"https://github.com/sequelize/sequelize/issues/5229","id":126916792,"number":5229,"title":"Field with reference in migration","user":{"login":"Wtower","id":10957886,"avatar_url":"https://avatars2.githubusercontent.com/u/10957886?v=3","gravatar_id":"","url":"https://api.github.com/users/Wtower","html_url":"https://github.com/Wtower","followers_url":"https://api.github.com/users/Wtower/followers","following_url":"https://api.github.com/users/Wtower/following{/other_user}","gists_url":"https://api.github.com/users/Wtower/gists{/gist_id}","starred_url":"https://api.github.com/users/Wtower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wtower/subscriptions","organizations_url":"https://api.github.com/users/Wtower/orgs","repos_url":"https://api.github.com/users/Wtower/repos","events_url":"https://api.github.com/users/Wtower/events{/privacy}","received_events_url":"https://api.github.com/users/Wtower/received_events","type":"User","site_admin":false},"labels":[{"id":636646701,"url":"https://api.github.com/repos/sequelize/sequelize/labels/stale","name":"stale","color":"aaaaaa","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-01-15T17:20:39Z","updated_at":"2017-07-07T00:25:31Z","closed_at":"2017-07-07T00:25:31Z","body":"None of the following appears to be working properly on MySQL:\n\n```\nqueryInterface.createTable(\n  \"Page\",\n  {\n    // (fields)\n    // this is not working\n    user_id: {type: Sequelize.INTEGER, references: {model: 'User', key: 'id', onUpdate: 'CASCADE'}}\n    // this is not working\n    user_id2: {type: Sequelize.INTEGER, references: {model: 'User', key: 'id'}, onUpdate: 'CASCADE'}\n    // this is working\n    user_id3: {type: Sequelize.INTEGER, references: {model: 'User', key: 'id'}}\n  }\n);\n```\n\nAdditionally, I have not found any relevant documentation on how to use this properly after:\n\n> ...Utils deprecated Non-object references property found. Support for that will be removed in version 4. Expected { references: { model: \"value\", key: \"key\" } } instead of { references: \"value\", referencesKey: \"key\" }. at ...\n"}}
{"actor":{"display_login":"probot-stale"}}