{"action":"created","comment":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/49928972","id":49928972,"diff_hunk":"@@ -310,6 +310,47 @@ describe(Support.getTestDialectTeaser('Model'), function() {\n           });\n         });\n       });\n+\n+      it('should be possible to destroy with where', function () {\n+        var conditionSearch = {\n+          where: {\n+            data: {\n+              employment : 'Hacker'\n+            }\n+          }\n+        };\n+\n+        return Promise.join(\n+          this.Event.create({\n+            data: {\n+              name: {\n+                first: 'Elliot',\n+                last: 'Alderson'\n+              },\n+              employment: 'Hacker'\n+            }\n+          }),\n+          this.Event.create({\n+            data: {\n+              name: {\n+                first: 'Christian',\n+                last: 'Slater'\n+              },\n+              employment: 'Hacker'","path":"test/integration/model/json.test.js","position":30,"original_position":30,"commit_id":"2274d0005cd139d0a5dae3dde6614394a8709871","original_commit_id":"8650b545f5589a657801c496564e5975dc35d0df","user":{"login":"sushantdhiman","id":9989487,"avatar_url":"https://avatars.githubusercontent.com/u/9989487?v=3","gravatar_id":"","url":"https://api.github.com/users/sushantdhiman","html_url":"https://github.com/sushantdhiman","followers_url":"https://api.github.com/users/sushantdhiman/followers","following_url":"https://api.github.com/users/sushantdhiman/following{/other_user}","gists_url":"https://api.github.com/users/sushantdhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/sushantdhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushantdhiman/subscriptions","organizations_url":"https://api.github.com/users/sushantdhiman/orgs","repos_url":"https://api.github.com/users/sushantdhiman/repos","events_url":"https://api.github.com/users/sushantdhiman/events{/privacy}","received_events_url":"https://api.github.com/users/sushantdhiman/received_events","type":"User","site_admin":false},"body":"Add a new row of data with different employment","created_at":"2016-01-16T08:01:50Z","updated_at":"2016-01-16T08:01:50Z","html_url":"https://github.com/sequelize/sequelize/pull/5226#discussion_r49928972","pull_request_url":"https://api.github.com/repos/sequelize/sequelize/pulls/5226","_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/49928972"},"html":{"href":"https://github.com/sequelize/sequelize/pull/5226#discussion_r49928972"},"pull_request":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5226"}}},"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/5226","id":56138534,"html_url":"https://github.com/sequelize/sequelize/pull/5226","diff_url":"https://github.com/sequelize/sequelize/pull/5226.diff","patch_url":"https://github.com/sequelize/sequelize/pull/5226.patch","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/5226","number":5226,"state":"open","locked":false,"title":"Fix 5092","user":{"login":"sushantdhiman","id":9989487,"avatar_url":"https://avatars.githubusercontent.com/u/9989487?v=3","gravatar_id":"","url":"https://api.github.com/users/sushantdhiman","html_url":"https://github.com/sushantdhiman","followers_url":"https://api.github.com/users/sushantdhiman/followers","following_url":"https://api.github.com/users/sushantdhiman/following{/other_user}","gists_url":"https://api.github.com/users/sushantdhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/sushantdhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushantdhiman/subscriptions","organizations_url":"https://api.github.com/users/sushantdhiman/orgs","repos_url":"https://api.github.com/users/sushantdhiman/repos","events_url":"https://api.github.com/users/sushantdhiman/events{/privacy}","received_events_url":"https://api.github.com/users/sushantdhiman/received_events","type":"User","site_admin":false},"body":"Fix #5092 , where `destroy` fails on `JSONB` data with where condition. ","created_at":"2016-01-15T07:28:15Z","updated_at":"2016-01-16T08:01:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e7c4450f97cae0783152b90edcd1a5f8e5dd396","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/sequelize/pulls/5226/commits","review_comments_url":"https://api.github.com/repos/sequelize/sequelize/pulls/5226/comments","review_comment_url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5226/comments","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/2274d0005cd139d0a5dae3dde6614394a8709871","head":{"label":"sushantdhiman:fix-5092","ref":"fix-5092","sha":"2274d0005cd139d0a5dae3dde6614394a8709871","user":{"login":"sushantdhiman","id":9989487,"avatar_url":"https://avatars.githubusercontent.com/u/9989487?v=3","gravatar_id":"","url":"https://api.github.com/users/sushantdhiman","html_url":"https://github.com/sushantdhiman","followers_url":"https://api.github.com/users/sushantdhiman/followers","following_url":"https://api.github.com/users/sushantdhiman/following{/other_user}","gists_url":"https://api.github.com/users/sushantdhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/sushantdhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushantdhiman/subscriptions","organizations_url":"https://api.github.com/users/sushantdhiman/orgs","repos_url":"https://api.github.com/users/sushantdhiman/repos","events_url":"https://api.github.com/users/sushantdhiman/events{/privacy}","received_events_url":"https://api.github.com/users/sushantdhiman/received_events","type":"User","site_admin":false},"repo":{"id":40614166,"name":"sequelize","full_name":"sushantdhiman/sequelize","owner":{"login":"sushantdhiman","id":9989487,"avatar_url":"https://avatars.githubusercontent.com/u/9989487?v=3","gravatar_id":"","url":"https://api.github.com/users/sushantdhiman","html_url":"https://github.com/sushantdhiman","followers_url":"https://api.github.com/users/sushantdhiman/followers","following_url":"https://api.github.com/users/sushantdhiman/following{/other_user}","gists_url":"https://api.github.com/users/sushantdhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/sushantdhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushantdhiman/subscriptions","organizations_url":"https://api.github.com/users/sushantdhiman/orgs","repos_url":"https://api.github.com/users/sushantdhiman/repos","events_url":"https://api.github.com/users/sushantdhiman/events{/privacy}","received_events_url":"https://api.github.com/users/sushantdhiman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sushantdhiman/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":true,"url":"https://api.github.com/repos/sushantdhiman/sequelize","forks_url":"https://api.github.com/repos/sushantdhiman/sequelize/forks","keys_url":"https://api.github.com/repos/sushantdhiman/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sushantdhiman/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sushantdhiman/sequelize/teams","hooks_url":"https://api.github.com/repos/sushantdhiman/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sushantdhiman/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sushantdhiman/sequelize/events","assignees_url":"https://api.github.com/repos/sushantdhiman/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sushantdhiman/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sushantdhiman/sequelize/tags","blobs_url":"https://api.github.com/repos/sushantdhiman/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sushantdhiman/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sushantdhiman/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sushantdhiman/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sushantdhiman/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sushantdhiman/sequelize/languages","stargazers_url":"https://api.github.com/repos/sushantdhiman/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sushantdhiman/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sushantdhiman/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sushantdhiman/sequelize/subscription","commits_url":"https://api.github.com/repos/sushantdhiman/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sushantdhiman/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sushantdhiman/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sushantdhiman/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sushantdhiman/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sushantdhiman/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sushantdhiman/sequelize/merges","archive_url":"https://api.github.com/repos/sushantdhiman/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sushantdhiman/sequelize/downloads","issues_url":"https://api.github.com/repos/sushantdhiman/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sushantdhiman/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sushantdhiman/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sushantdhiman/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sushantdhiman/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sushantdhiman/sequelize/releases{/id}","created_at":"2015-08-12T17:19:43Z","updated_at":"2016-01-14T12:44:05Z","pushed_at":"2016-01-16T08:01:12Z","git_url":"git://github.com/sushantdhiman/sequelize.git","ssh_url":"git@github.com:sushantdhiman/sequelize.git","clone_url":"https://github.com/sushantdhiman/sequelize.git","svn_url":"https://github.com/sushantdhiman/sequelize","homepage":"http://sequelizejs.com","size":16599,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sequelize:master","ref":"master","sha":"4651cfbe69b3ac9194b9313bcde38b13e9a6fa55","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":790359,"name":"sequelize","full_name":"sequelize/sequelize","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":false,"url":"https://api.github.com/repos/sequelize/sequelize","forks_url":"https://api.github.com/repos/sequelize/sequelize/forks","keys_url":"https://api.github.com/repos/sequelize/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/sequelize/teams","hooks_url":"https://api.github.com/repos/sequelize/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sequelize/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/sequelize/events","assignees_url":"https://api.github.com/repos/sequelize/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/sequelize/tags","blobs_url":"https://api.github.com/repos/sequelize/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/sequelize/languages","stargazers_url":"https://api.github.com/repos/sequelize/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sequelize/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sequelize/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sequelize/sequelize/subscription","commits_url":"https://api.github.com/repos/sequelize/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/sequelize/merges","archive_url":"https://api.github.com/repos/sequelize/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/sequelize/downloads","issues_url":"https://api.github.com/repos/sequelize/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/sequelize/releases{/id}","created_at":"2010-07-22T07:11:11Z","updated_at":"2016-01-16T06:43:28Z","pushed_at":"2016-01-16T08:01:12Z","git_url":"git://github.com/sequelize/sequelize.git","ssh_url":"git@github.com:sequelize/sequelize.git","clone_url":"https://github.com/sequelize/sequelize.git","svn_url":"https://github.com/sequelize/sequelize","homepage":"http://sequelizejs.com","size":53378,"stargazers_count":5499,"watchers_count":5499,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1184,"mirror_url":null,"open_issues_count":662,"forks":1184,"open_issues":662,"watchers":5499,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5226"},"html":{"href":"https://github.com/sequelize/sequelize/pull/5226"},"issue":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/5226"},"comments":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/5226/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5226/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/5226/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/sequelize/statuses/2274d0005cd139d0a5dae3dde6614394a8709871"}}}}