{"action":"created","comment":{"url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/comments/65683227","id":65683227,"diff_hunk":"@@ -0,0 +1,9 @@\n+module Shareconomy\n+  class Listing < ActiveRecord::Base\n+    belongs_to :user\n+    has_many :packages\n+\n+    validates :instant_booking, inclusion: { in: [true, false] }","path":"app/models/shareconomy/listing.rb","position":6,"original_position":6,"commit_id":"bed9e4d41f2ce1366ce24a28005d76eea4257949","original_commit_id":"bed9e4d41f2ce1366ce24a28005d76eea4257949","user":{"login":"GeorgeZhukov","id":8019484,"avatar_url":"https://avatars.githubusercontent.com/u/8019484?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeZhukov","html_url":"https://github.com/GeorgeZhukov","followers_url":"https://api.github.com/users/GeorgeZhukov/followers","following_url":"https://api.github.com/users/GeorgeZhukov/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeZhukov/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeZhukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeZhukov/subscriptions","organizations_url":"https://api.github.com/users/GeorgeZhukov/orgs","repos_url":"https://api.github.com/users/GeorgeZhukov/repos","events_url":"https://api.github.com/users/GeorgeZhukov/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeZhukov/received_events","type":"User","site_admin":false},"body":"what about validates user presence?","created_at":"2016-06-03T09:53:38Z","updated_at":"2016-06-03T09:53:38Z","html_url":"https://github.com/RubyGarage/shareconomy/pull/2#discussion_r65683227","pull_request_url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/comments/65683227"},"html":{"href":"https://github.com/RubyGarage/shareconomy/pull/2#discussion_r65683227"},"pull_request":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2","id":72476059,"html_url":"https://github.com/RubyGarage/shareconomy/pull/2","diff_url":"https://github.com/RubyGarage/shareconomy/pull/2.diff","patch_url":"https://github.com/RubyGarage/shareconomy/pull/2.patch","issue_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues/2","number":2,"state":"open","locked":false,"title":"basic models","user":{"login":"kolyastepanets","id":12134472,"avatar_url":"https://avatars.githubusercontent.com/u/12134472?v=3","gravatar_id":"","url":"https://api.github.com/users/kolyastepanets","html_url":"https://github.com/kolyastepanets","followers_url":"https://api.github.com/users/kolyastepanets/followers","following_url":"https://api.github.com/users/kolyastepanets/following{/other_user}","gists_url":"https://api.github.com/users/kolyastepanets/gists{/gist_id}","starred_url":"https://api.github.com/users/kolyastepanets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolyastepanets/subscriptions","organizations_url":"https://api.github.com/users/kolyastepanets/orgs","repos_url":"https://api.github.com/users/kolyastepanets/repos","events_url":"https://api.github.com/users/kolyastepanets/events{/privacy}","received_events_url":"https://api.github.com/users/kolyastepanets/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-03T09:10:09Z","updated_at":"2016-06-03T09:53:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03692ffed325b6fa3890ed69d954671fc3faacbf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2/commits","review_comments_url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2/comments","review_comment_url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues/2/comments","statuses_url":"https://api.github.com/repos/RubyGarage/shareconomy/statuses/bed9e4d41f2ce1366ce24a28005d76eea4257949","head":{"label":"RubyGarage:models","ref":"models","sha":"bed9e4d41f2ce1366ce24a28005d76eea4257949","user":{"login":"RubyGarage","id":2300590,"avatar_url":"https://avatars.githubusercontent.com/u/2300590?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyGarage","html_url":"https://github.com/RubyGarage","followers_url":"https://api.github.com/users/RubyGarage/followers","following_url":"https://api.github.com/users/RubyGarage/following{/other_user}","gists_url":"https://api.github.com/users/RubyGarage/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyGarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyGarage/subscriptions","organizations_url":"https://api.github.com/users/RubyGarage/orgs","repos_url":"https://api.github.com/users/RubyGarage/repos","events_url":"https://api.github.com/users/RubyGarage/events{/privacy}","received_events_url":"https://api.github.com/users/RubyGarage/received_events","type":"Organization","site_admin":false},"repo":{"id":60172156,"name":"shareconomy","full_name":"RubyGarage/shareconomy","owner":{"login":"RubyGarage","id":2300590,"avatar_url":"https://avatars.githubusercontent.com/u/2300590?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyGarage","html_url":"https://github.com/RubyGarage","followers_url":"https://api.github.com/users/RubyGarage/followers","following_url":"https://api.github.com/users/RubyGarage/following{/other_user}","gists_url":"https://api.github.com/users/RubyGarage/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyGarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyGarage/subscriptions","organizations_url":"https://api.github.com/users/RubyGarage/orgs","repos_url":"https://api.github.com/users/RubyGarage/repos","events_url":"https://api.github.com/users/RubyGarage/events{/privacy}","received_events_url":"https://api.github.com/users/RubyGarage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RubyGarage/shareconomy","description":"","fork":false,"url":"https://api.github.com/repos/RubyGarage/shareconomy","forks_url":"https://api.github.com/repos/RubyGarage/shareconomy/forks","keys_url":"https://api.github.com/repos/RubyGarage/shareconomy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubyGarage/shareconomy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubyGarage/shareconomy/teams","hooks_url":"https://api.github.com/repos/RubyGarage/shareconomy/hooks","issue_events_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues/events{/number}","events_url":"https://api.github.com/repos/RubyGarage/shareconomy/events","assignees_url":"https://api.github.com/repos/RubyGarage/shareconomy/assignees{/user}","branches_url":"https://api.github.com/repos/RubyGarage/shareconomy/branches{/branch}","tags_url":"https://api.github.com/repos/RubyGarage/shareconomy/tags","blobs_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubyGarage/shareconomy/statuses/{sha}","languages_url":"https://api.github.com/repos/RubyGarage/shareconomy/languages","stargazers_url":"https://api.github.com/repos/RubyGarage/shareconomy/stargazers","contributors_url":"https://api.github.com/repos/RubyGarage/shareconomy/contributors","subscribers_url":"https://api.github.com/repos/RubyGarage/shareconomy/subscribers","subscription_url":"https://api.github.com/repos/RubyGarage/shareconomy/subscription","commits_url":"https://api.github.com/repos/RubyGarage/shareconomy/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubyGarage/shareconomy/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubyGarage/shareconomy/contents/{+path}","compare_url":"https://api.github.com/repos/RubyGarage/shareconomy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubyGarage/shareconomy/merges","archive_url":"https://api.github.com/repos/RubyGarage/shareconomy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubyGarage/shareconomy/downloads","issues_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues{/number}","pulls_url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls{/number}","milestones_url":"https://api.github.com/repos/RubyGarage/shareconomy/milestones{/number}","notifications_url":"https://api.github.com/repos/RubyGarage/shareconomy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubyGarage/shareconomy/labels{/name}","releases_url":"https://api.github.com/repos/RubyGarage/shareconomy/releases{/id}","deployments_url":"https://api.github.com/repos/RubyGarage/shareconomy/deployments","created_at":"2016-06-01T11:46:12Z","updated_at":"2016-06-02T13:26:13Z","pushed_at":"2016-06-03T09:19:07Z","git_url":"git://github.com/RubyGarage/shareconomy.git","ssh_url":"git@github.com:RubyGarage/shareconomy.git","clone_url":"https://github.com/RubyGarage/shareconomy.git","svn_url":"https://github.com/RubyGarage/shareconomy","homepage":null,"size":31,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RubyGarage:master","ref":"master","sha":"f962b6e907f54c1348124aefe77f42b1ebadcc57","user":{"login":"RubyGarage","id":2300590,"avatar_url":"https://avatars.githubusercontent.com/u/2300590?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyGarage","html_url":"https://github.com/RubyGarage","followers_url":"https://api.github.com/users/RubyGarage/followers","following_url":"https://api.github.com/users/RubyGarage/following{/other_user}","gists_url":"https://api.github.com/users/RubyGarage/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyGarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyGarage/subscriptions","organizations_url":"https://api.github.com/users/RubyGarage/orgs","repos_url":"https://api.github.com/users/RubyGarage/repos","events_url":"https://api.github.com/users/RubyGarage/events{/privacy}","received_events_url":"https://api.github.com/users/RubyGarage/received_events","type":"Organization","site_admin":false},"repo":{"id":60172156,"name":"shareconomy","full_name":"RubyGarage/shareconomy","owner":{"login":"RubyGarage","id":2300590,"avatar_url":"https://avatars.githubusercontent.com/u/2300590?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyGarage","html_url":"https://github.com/RubyGarage","followers_url":"https://api.github.com/users/RubyGarage/followers","following_url":"https://api.github.com/users/RubyGarage/following{/other_user}","gists_url":"https://api.github.com/users/RubyGarage/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyGarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyGarage/subscriptions","organizations_url":"https://api.github.com/users/RubyGarage/orgs","repos_url":"https://api.github.com/users/RubyGarage/repos","events_url":"https://api.github.com/users/RubyGarage/events{/privacy}","received_events_url":"https://api.github.com/users/RubyGarage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RubyGarage/shareconomy","description":"","fork":false,"url":"https://api.github.com/repos/RubyGarage/shareconomy","forks_url":"https://api.github.com/repos/RubyGarage/shareconomy/forks","keys_url":"https://api.github.com/repos/RubyGarage/shareconomy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubyGarage/shareconomy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubyGarage/shareconomy/teams","hooks_url":"https://api.github.com/repos/RubyGarage/shareconomy/hooks","issue_events_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues/events{/number}","events_url":"https://api.github.com/repos/RubyGarage/shareconomy/events","assignees_url":"https://api.github.com/repos/RubyGarage/shareconomy/assignees{/user}","branches_url":"https://api.github.com/repos/RubyGarage/shareconomy/branches{/branch}","tags_url":"https://api.github.com/repos/RubyGarage/shareconomy/tags","blobs_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubyGarage/shareconomy/statuses/{sha}","languages_url":"https://api.github.com/repos/RubyGarage/shareconomy/languages","stargazers_url":"https://api.github.com/repos/RubyGarage/shareconomy/stargazers","contributors_url":"https://api.github.com/repos/RubyGarage/shareconomy/contributors","subscribers_url":"https://api.github.com/repos/RubyGarage/shareconomy/subscribers","subscription_url":"https://api.github.com/repos/RubyGarage/shareconomy/subscription","commits_url":"https://api.github.com/repos/RubyGarage/shareconomy/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubyGarage/shareconomy/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubyGarage/shareconomy/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubyGarage/shareconomy/contents/{+path}","compare_url":"https://api.github.com/repos/RubyGarage/shareconomy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubyGarage/shareconomy/merges","archive_url":"https://api.github.com/repos/RubyGarage/shareconomy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubyGarage/shareconomy/downloads","issues_url":"https://api.github.com/repos/RubyGarage/shareconomy/issues{/number}","pulls_url":"https://api.github.com/repos/RubyGarage/shareconomy/pulls{/number}","milestones_url":"https://api.github.com/repos/RubyGarage/shareconomy/milestones{/number}","notifications_url":"https://api.github.com/repos/RubyGarage/shareconomy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubyGarage/shareconomy/labels{/name}","releases_url":"https://api.github.com/repos/RubyGarage/shareconomy/releases{/id}","deployments_url":"https://api.github.com/repos/RubyGarage/shareconomy/deployments","created_at":"2016-06-01T11:46:12Z","updated_at":"2016-06-02T13:26:13Z","pushed_at":"2016-06-03T09:19:07Z","git_url":"git://github.com/RubyGarage/shareconomy.git","ssh_url":"git@github.com:RubyGarage/shareconomy.git","clone_url":"https://github.com/RubyGarage/shareconomy.git","svn_url":"https://github.com/RubyGarage/shareconomy","homepage":null,"size":31,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2"},"html":{"href":"https://github.com/RubyGarage/shareconomy/pull/2"},"issue":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/issues/2"},"comments":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/RubyGarage/shareconomy/statuses/bed9e4d41f2ce1366ce24a28005d76eea4257949"}}}}
{"actor":{"display_login":"GeorgeZhukov"}}