{"action":"created","comment":{"url":"https://api.github.com/repos/jepetko/myflix/pulls/comments/43409273","id":43409273,"diff_hunk":"@@ -12,25 +12,4 @@ def self.search_by_title(search_term)\n     Video.where('lower(title) LIKE ?', \"%#{search_term}%\").order('created_at DESC')","path":"app/models/video.rb","position":1,"original_position":1,"commit_id":"3f19ea7b5c6ac47b658f3e9d6b93a40e771dad27","original_commit_id":"a6452d260aa5378a3497b120f23c1fc44a5ed24e","user":{"login":"brandoncc","id":543973,"avatar_url":"https://avatars.githubusercontent.com/u/543973?v=3","gravatar_id":"","url":"https://api.github.com/users/brandoncc","html_url":"https://github.com/brandoncc","followers_url":"https://api.github.com/users/brandoncc/followers","following_url":"https://api.github.com/users/brandoncc/following{/other_user}","gists_url":"https://api.github.com/users/brandoncc/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoncc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoncc/subscriptions","organizations_url":"https://api.github.com/users/brandoncc/orgs","repos_url":"https://api.github.com/users/brandoncc/repos","events_url":"https://api.github.com/users/brandoncc/events{/privacy}","received_events_url":"https://api.github.com/users/brandoncc/received_events","type":"User","site_admin":false},"body":"As long as you are using postgres on all of your servers, `ILIKE` is fine.  There are many parts of postgres that as not compatible with other database engines. I definitely see your point though :-)","created_at":"2015-10-29T16:31:18Z","updated_at":"2015-10-29T16:31:18Z","html_url":"https://github.com/jepetko/myflix/pull/17#discussion_r43409273","pull_request_url":"https://api.github.com/repos/jepetko/myflix/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/jepetko/myflix/pulls/comments/43409273"},"html":{"href":"https://github.com/jepetko/myflix/pull/17#discussion_r43409273"},"pull_request":{"href":"https://api.github.com/repos/jepetko/myflix/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/jepetko/myflix/pulls/17","id":49016901,"html_url":"https://github.com/jepetko/myflix/pull/17","diff_url":"https://github.com/jepetko/myflix/pull/17.diff","patch_url":"https://github.com/jepetko/myflix/pull/17.patch","issue_url":"https://api.github.com/repos/jepetko/myflix/issues/17","number":17,"state":"closed","locked":false,"title":"Week 7 patterns","user":{"login":"jepetko","id":1812641,"avatar_url":"https://avatars.githubusercontent.com/u/1812641?v=3","gravatar_id":"","url":"https://api.github.com/users/jepetko","html_url":"https://github.com/jepetko","followers_url":"https://api.github.com/users/jepetko/followers","following_url":"https://api.github.com/users/jepetko/following{/other_user}","gists_url":"https://api.github.com/users/jepetko/gists{/gist_id}","starred_url":"https://api.github.com/users/jepetko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jepetko/subscriptions","organizations_url":"https://api.github.com/users/jepetko/orgs","repos_url":"https://api.github.com/users/jepetko/repos","events_url":"https://api.github.com/users/jepetko/events{/privacy}","received_events_url":"https://api.github.com/users/jepetko/received_events","type":"User","site_admin":false},"body":"* 12\tAssignment: Write a decorator\r\n* 20\tAssignment: Write a sign up service","created_at":"2015-10-28T14:55:11Z","updated_at":"2015-10-29T16:31:18Z","closed_at":"2015-10-29T09:19:30Z","merged_at":"2015-10-29T09:19:30Z","merge_commit_sha":"912ac95ff0c27720b28619427ab157b7680e334e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jepetko/myflix/pulls/17/commits","review_comments_url":"https://api.github.com/repos/jepetko/myflix/pulls/17/comments","review_comment_url":"https://api.github.com/repos/jepetko/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jepetko/myflix/issues/17/comments","statuses_url":"https://api.github.com/repos/jepetko/myflix/statuses/3f19ea7b5c6ac47b658f3e9d6b93a40e771dad27","head":{"label":"jepetko:week-7-patterns","ref":"week-7-patterns","sha":"3f19ea7b5c6ac47b658f3e9d6b93a40e771dad27","user":{"login":"jepetko","id":1812641,"avatar_url":"https://avatars.githubusercontent.com/u/1812641?v=3","gravatar_id":"","url":"https://api.github.com/users/jepetko","html_url":"https://github.com/jepetko","followers_url":"https://api.github.com/users/jepetko/followers","following_url":"https://api.github.com/users/jepetko/following{/other_user}","gists_url":"https://api.github.com/users/jepetko/gists{/gist_id}","starred_url":"https://api.github.com/users/jepetko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jepetko/subscriptions","organizations_url":"https://api.github.com/users/jepetko/orgs","repos_url":"https://api.github.com/users/jepetko/repos","events_url":"https://api.github.com/users/jepetko/events{/privacy}","received_events_url":"https://api.github.com/users/jepetko/received_events","type":"User","site_admin":false},"repo":{"id":33948139,"name":"myflix","full_name":"jepetko/myflix","owner":{"login":"jepetko","id":1812641,"avatar_url":"https://avatars.githubusercontent.com/u/1812641?v=3","gravatar_id":"","url":"https://api.github.com/users/jepetko","html_url":"https://github.com/jepetko","followers_url":"https://api.github.com/users/jepetko/followers","following_url":"https://api.github.com/users/jepetko/following{/other_user}","gists_url":"https://api.github.com/users/jepetko/gists{/gist_id}","starred_url":"https://api.github.com/users/jepetko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jepetko/subscriptions","organizations_url":"https://api.github.com/users/jepetko/orgs","repos_url":"https://api.github.com/users/jepetko/repos","events_url":"https://api.github.com/users/jepetko/events{/privacy}","received_events_url":"https://api.github.com/users/jepetko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jepetko/myflix","description":"myflix tealeaf course application","fork":false,"url":"https://api.github.com/repos/jepetko/myflix","forks_url":"https://api.github.com/repos/jepetko/myflix/forks","keys_url":"https://api.github.com/repos/jepetko/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jepetko/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jepetko/myflix/teams","hooks_url":"https://api.github.com/repos/jepetko/myflix/hooks","issue_events_url":"https://api.github.com/repos/jepetko/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/jepetko/myflix/events","assignees_url":"https://api.github.com/repos/jepetko/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/jepetko/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/jepetko/myflix/tags","blobs_url":"https://api.github.com/repos/jepetko/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jepetko/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jepetko/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/jepetko/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jepetko/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/jepetko/myflix/languages","stargazers_url":"https://api.github.com/repos/jepetko/myflix/stargazers","contributors_url":"https://api.github.com/repos/jepetko/myflix/contributors","subscribers_url":"https://api.github.com/repos/jepetko/myflix/subscribers","subscription_url":"https://api.github.com/repos/jepetko/myflix/subscription","commits_url":"https://api.github.com/repos/jepetko/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/jepetko/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/jepetko/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/jepetko/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/jepetko/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/jepetko/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jepetko/myflix/merges","archive_url":"https://api.github.com/repos/jepetko/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jepetko/myflix/downloads","issues_url":"https://api.github.com/repos/jepetko/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/jepetko/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/jepetko/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/jepetko/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jepetko/myflix/labels{/name}","releases_url":"https://api.github.com/repos/jepetko/myflix/releases{/id}","created_at":"2015-04-14T18:01:44Z","updated_at":"2015-05-02T10:22:05Z","pushed_at":"2015-10-29T11:18:21Z","git_url":"git://github.com/jepetko/myflix.git","ssh_url":"git@github.com:jepetko/myflix.git","clone_url":"https://github.com/jepetko/myflix.git","svn_url":"https://github.com/jepetko/myflix","homepage":null,"size":1536,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"jepetko:staging","ref":"staging","sha":"2dbc902caf3980b59f6a429c8fab02e12db165e5","user":{"login":"jepetko","id":1812641,"avatar_url":"https://avatars.githubusercontent.com/u/1812641?v=3","gravatar_id":"","url":"https://api.github.com/users/jepetko","html_url":"https://github.com/jepetko","followers_url":"https://api.github.com/users/jepetko/followers","following_url":"https://api.github.com/users/jepetko/following{/other_user}","gists_url":"https://api.github.com/users/jepetko/gists{/gist_id}","starred_url":"https://api.github.com/users/jepetko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jepetko/subscriptions","organizations_url":"https://api.github.com/users/jepetko/orgs","repos_url":"https://api.github.com/users/jepetko/repos","events_url":"https://api.github.com/users/jepetko/events{/privacy}","received_events_url":"https://api.github.com/users/jepetko/received_events","type":"User","site_admin":false},"repo":{"id":33948139,"name":"myflix","full_name":"jepetko/myflix","owner":{"login":"jepetko","id":1812641,"avatar_url":"https://avatars.githubusercontent.com/u/1812641?v=3","gravatar_id":"","url":"https://api.github.com/users/jepetko","html_url":"https://github.com/jepetko","followers_url":"https://api.github.com/users/jepetko/followers","following_url":"https://api.github.com/users/jepetko/following{/other_user}","gists_url":"https://api.github.com/users/jepetko/gists{/gist_id}","starred_url":"https://api.github.com/users/jepetko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jepetko/subscriptions","organizations_url":"https://api.github.com/users/jepetko/orgs","repos_url":"https://api.github.com/users/jepetko/repos","events_url":"https://api.github.com/users/jepetko/events{/privacy}","received_events_url":"https://api.github.com/users/jepetko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jepetko/myflix","description":"myflix tealeaf course application","fork":false,"url":"https://api.github.com/repos/jepetko/myflix","forks_url":"https://api.github.com/repos/jepetko/myflix/forks","keys_url":"https://api.github.com/repos/jepetko/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jepetko/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jepetko/myflix/teams","hooks_url":"https://api.github.com/repos/jepetko/myflix/hooks","issue_events_url":"https://api.github.com/repos/jepetko/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/jepetko/myflix/events","assignees_url":"https://api.github.com/repos/jepetko/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/jepetko/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/jepetko/myflix/tags","blobs_url":"https://api.github.com/repos/jepetko/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jepetko/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jepetko/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/jepetko/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jepetko/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/jepetko/myflix/languages","stargazers_url":"https://api.github.com/repos/jepetko/myflix/stargazers","contributors_url":"https://api.github.com/repos/jepetko/myflix/contributors","subscribers_url":"https://api.github.com/repos/jepetko/myflix/subscribers","subscription_url":"https://api.github.com/repos/jepetko/myflix/subscription","commits_url":"https://api.github.com/repos/jepetko/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/jepetko/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/jepetko/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/jepetko/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/jepetko/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/jepetko/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jepetko/myflix/merges","archive_url":"https://api.github.com/repos/jepetko/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jepetko/myflix/downloads","issues_url":"https://api.github.com/repos/jepetko/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/jepetko/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/jepetko/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/jepetko/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jepetko/myflix/labels{/name}","releases_url":"https://api.github.com/repos/jepetko/myflix/releases{/id}","created_at":"2015-04-14T18:01:44Z","updated_at":"2015-05-02T10:22:05Z","pushed_at":"2015-10-29T11:18:21Z","git_url":"git://github.com/jepetko/myflix.git","ssh_url":"git@github.com:jepetko/myflix.git","clone_url":"https://github.com/jepetko/myflix.git","svn_url":"https://github.com/jepetko/myflix","homepage":null,"size":1536,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/jepetko/myflix/pulls/17"},"html":{"href":"https://github.com/jepetko/myflix/pull/17"},"issue":{"href":"https://api.github.com/repos/jepetko/myflix/issues/17"},"comments":{"href":"https://api.github.com/repos/jepetko/myflix/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/jepetko/myflix/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/jepetko/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jepetko/myflix/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/jepetko/myflix/statuses/3f19ea7b5c6ac47b658f3e9d6b93a40e771dad27"}}}}