{"action":"created","comment":{"url":"https://api.github.com/repos/DUCSS/ducss-site/pulls/comments/41714496","id":41714496,"diff_hunk":"@@ -11,7 +11,17 @@\n #\n # It's strongly recommended that you check this file into your version control system.\n \n-ActiveRecord::Schema.define(version: 20150823122126) do\n+ActiveRecord::Schema.define(version: 20151011163832) do\n+\n+  create_table \"books\", force: :cascade do |t|\n+    t.string   \"title\"\n+    t.string   \"author\"\n+    t.string   \"synopsis\"\n+    t.string   \"image_url\"\n+    t.boolean  \"available\"\n+    t.datetime \"created_at\", null: false\n+    t.datetime \"updated_at\", null: false\n+  end","path":"db/schema.rb","position":15,"original_position":15,"commit_id":"21f57a5100d1e02e03b07521cef53792a1784f8c","original_commit_id":"21f57a5100d1e02e03b07521cef53792a1784f8c","user":{"login":"houli","id":143868,"avatar_url":"https://avatars.githubusercontent.com/u/143868?v=3","gravatar_id":"","url":"https://api.github.com/users/houli","html_url":"https://github.com/houli","followers_url":"https://api.github.com/users/houli/followers","following_url":"https://api.github.com/users/houli/following{/other_user}","gists_url":"https://api.github.com/users/houli/gists{/gist_id}","starred_url":"https://api.github.com/users/houli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houli/subscriptions","organizations_url":"https://api.github.com/users/houli/orgs","repos_url":"https://api.github.com/users/houli/repos","events_url":"https://api.github.com/users/houli/events{/privacy}","received_events_url":"https://api.github.com/users/houli/received_events","type":"User","site_admin":false},"body":"More model stuff but there can be more book states. Can be modeled with AR enum. https://github.com/DUCSS/ducss-site-old/blob/master/project/library/models.py shows some of the model choices made for the old version","created_at":"2015-10-11T19:34:17Z","updated_at":"2015-10-11T19:34:17Z","html_url":"https://github.com/DUCSS/ducss-site/pull/40#discussion_r41714496","pull_request_url":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/DUCSS/ducss-site/pulls/comments/41714496"},"html":{"href":"https://github.com/DUCSS/ducss-site/pull/40#discussion_r41714496"},"pull_request":{"href":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40","id":47372448,"html_url":"https://github.com/DUCSS/ducss-site/pull/40","diff_url":"https://github.com/DUCSS/ducss-site/pull/40.diff","patch_url":"https://github.com/DUCSS/ducss-site/pull/40.patch","issue_url":"https://api.github.com/repos/DUCSS/ducss-site/issues/40","number":40,"state":"open","locked":false,"title":"Conor/library","user":{"login":"c-brenn","id":8920322,"avatar_url":"https://avatars.githubusercontent.com/u/8920322?v=3","gravatar_id":"","url":"https://api.github.com/users/c-brenn","html_url":"https://github.com/c-brenn","followers_url":"https://api.github.com/users/c-brenn/followers","following_url":"https://api.github.com/users/c-brenn/following{/other_user}","gists_url":"https://api.github.com/users/c-brenn/gists{/gist_id}","starred_url":"https://api.github.com/users/c-brenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-brenn/subscriptions","organizations_url":"https://api.github.com/users/c-brenn/orgs","repos_url":"https://api.github.com/users/c-brenn/repos","events_url":"https://api.github.com/users/c-brenn/events{/privacy}","received_events_url":"https://api.github.com/users/c-brenn/received_events","type":"User","site_admin":false},"body":"This is p much ready to go. Might be best to wait till we have a list of books ready to upload?","created_at":"2015-10-11T18:22:03Z","updated_at":"2015-10-11T19:34:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c07efe4ea95ca24417663e91964811e0ed26b215","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40/commits","review_comments_url":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40/comments","review_comment_url":"https://api.github.com/repos/DUCSS/ducss-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DUCSS/ducss-site/issues/40/comments","statuses_url":"https://api.github.com/repos/DUCSS/ducss-site/statuses/21f57a5100d1e02e03b07521cef53792a1784f8c","head":{"label":"DUCSS:conor/library","ref":"conor/library","sha":"21f57a5100d1e02e03b07521cef53792a1784f8c","user":{"login":"DUCSS","id":5727133,"avatar_url":"https://avatars.githubusercontent.com/u/5727133?v=3","gravatar_id":"","url":"https://api.github.com/users/DUCSS","html_url":"https://github.com/DUCSS","followers_url":"https://api.github.com/users/DUCSS/followers","following_url":"https://api.github.com/users/DUCSS/following{/other_user}","gists_url":"https://api.github.com/users/DUCSS/gists{/gist_id}","starred_url":"https://api.github.com/users/DUCSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DUCSS/subscriptions","organizations_url":"https://api.github.com/users/DUCSS/orgs","repos_url":"https://api.github.com/users/DUCSS/repos","events_url":"https://api.github.com/users/DUCSS/events{/privacy}","received_events_url":"https://api.github.com/users/DUCSS/received_events","type":"Organization","site_admin":false},"repo":{"id":23327726,"name":"ducss-site","full_name":"DUCSS/ducss-site","owner":{"login":"DUCSS","id":5727133,"avatar_url":"https://avatars.githubusercontent.com/u/5727133?v=3","gravatar_id":"","url":"https://api.github.com/users/DUCSS","html_url":"https://github.com/DUCSS","followers_url":"https://api.github.com/users/DUCSS/followers","following_url":"https://api.github.com/users/DUCSS/following{/other_user}","gists_url":"https://api.github.com/users/DUCSS/gists{/gist_id}","starred_url":"https://api.github.com/users/DUCSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DUCSS/subscriptions","organizations_url":"https://api.github.com/users/DUCSS/orgs","repos_url":"https://api.github.com/users/DUCSS/repos","events_url":"https://api.github.com/users/DUCSS/events{/privacy}","received_events_url":"https://api.github.com/users/DUCSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DUCSS/ducss-site","description":"New DUCSS website WIP","fork":false,"url":"https://api.github.com/repos/DUCSS/ducss-site","forks_url":"https://api.github.com/repos/DUCSS/ducss-site/forks","keys_url":"https://api.github.com/repos/DUCSS/ducss-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DUCSS/ducss-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DUCSS/ducss-site/teams","hooks_url":"https://api.github.com/repos/DUCSS/ducss-site/hooks","issue_events_url":"https://api.github.com/repos/DUCSS/ducss-site/issues/events{/number}","events_url":"https://api.github.com/repos/DUCSS/ducss-site/events","assignees_url":"https://api.github.com/repos/DUCSS/ducss-site/assignees{/user}","branches_url":"https://api.github.com/repos/DUCSS/ducss-site/branches{/branch}","tags_url":"https://api.github.com/repos/DUCSS/ducss-site/tags","blobs_url":"https://api.github.com/repos/DUCSS/ducss-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DUCSS/ducss-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DUCSS/ducss-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/DUCSS/ducss-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DUCSS/ducss-site/statuses/{sha}","languages_url":"https://api.github.com/repos/DUCSS/ducss-site/languages","stargazers_url":"https://api.github.com/repos/DUCSS/ducss-site/stargazers","contributors_url":"https://api.github.com/repos/DUCSS/ducss-site/contributors","subscribers_url":"https://api.github.com/repos/DUCSS/ducss-site/subscribers","subscription_url":"https://api.github.com/repos/DUCSS/ducss-site/subscription","commits_url":"https://api.github.com/repos/DUCSS/ducss-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/DUCSS/ducss-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/DUCSS/ducss-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/DUCSS/ducss-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/DUCSS/ducss-site/contents/{+path}","compare_url":"https://api.github.com/repos/DUCSS/ducss-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DUCSS/ducss-site/merges","archive_url":"https://api.github.com/repos/DUCSS/ducss-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DUCSS/ducss-site/downloads","issues_url":"https://api.github.com/repos/DUCSS/ducss-site/issues{/number}","pulls_url":"https://api.github.com/repos/DUCSS/ducss-site/pulls{/number}","milestones_url":"https://api.github.com/repos/DUCSS/ducss-site/milestones{/number}","notifications_url":"https://api.github.com/repos/DUCSS/ducss-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DUCSS/ducss-site/labels{/name}","releases_url":"https://api.github.com/repos/DUCSS/ducss-site/releases{/id}","created_at":"2014-08-25T20:31:44Z","updated_at":"2015-08-23T22:33:46Z","pushed_at":"2015-10-11T18:22:03Z","git_url":"git://github.com/DUCSS/ducss-site.git","ssh_url":"git@github.com:DUCSS/ducss-site.git","clone_url":"https://github.com/DUCSS/ducss-site.git","svn_url":"https://github.com/DUCSS/ducss-site","homepage":"","size":1224,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"DUCSS:conor/new-look-duck","ref":"conor/new-look-duck","sha":"70e6861addc439e1c1b31d69ada34cf9340186ba","user":{"login":"DUCSS","id":5727133,"avatar_url":"https://avatars.githubusercontent.com/u/5727133?v=3","gravatar_id":"","url":"https://api.github.com/users/DUCSS","html_url":"https://github.com/DUCSS","followers_url":"https://api.github.com/users/DUCSS/followers","following_url":"https://api.github.com/users/DUCSS/following{/other_user}","gists_url":"https://api.github.com/users/DUCSS/gists{/gist_id}","starred_url":"https://api.github.com/users/DUCSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DUCSS/subscriptions","organizations_url":"https://api.github.com/users/DUCSS/orgs","repos_url":"https://api.github.com/users/DUCSS/repos","events_url":"https://api.github.com/users/DUCSS/events{/privacy}","received_events_url":"https://api.github.com/users/DUCSS/received_events","type":"Organization","site_admin":false},"repo":{"id":23327726,"name":"ducss-site","full_name":"DUCSS/ducss-site","owner":{"login":"DUCSS","id":5727133,"avatar_url":"https://avatars.githubusercontent.com/u/5727133?v=3","gravatar_id":"","url":"https://api.github.com/users/DUCSS","html_url":"https://github.com/DUCSS","followers_url":"https://api.github.com/users/DUCSS/followers","following_url":"https://api.github.com/users/DUCSS/following{/other_user}","gists_url":"https://api.github.com/users/DUCSS/gists{/gist_id}","starred_url":"https://api.github.com/users/DUCSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DUCSS/subscriptions","organizations_url":"https://api.github.com/users/DUCSS/orgs","repos_url":"https://api.github.com/users/DUCSS/repos","events_url":"https://api.github.com/users/DUCSS/events{/privacy}","received_events_url":"https://api.github.com/users/DUCSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DUCSS/ducss-site","description":"New DUCSS website WIP","fork":false,"url":"https://api.github.com/repos/DUCSS/ducss-site","forks_url":"https://api.github.com/repos/DUCSS/ducss-site/forks","keys_url":"https://api.github.com/repos/DUCSS/ducss-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DUCSS/ducss-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DUCSS/ducss-site/teams","hooks_url":"https://api.github.com/repos/DUCSS/ducss-site/hooks","issue_events_url":"https://api.github.com/repos/DUCSS/ducss-site/issues/events{/number}","events_url":"https://api.github.com/repos/DUCSS/ducss-site/events","assignees_url":"https://api.github.com/repos/DUCSS/ducss-site/assignees{/user}","branches_url":"https://api.github.com/repos/DUCSS/ducss-site/branches{/branch}","tags_url":"https://api.github.com/repos/DUCSS/ducss-site/tags","blobs_url":"https://api.github.com/repos/DUCSS/ducss-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DUCSS/ducss-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DUCSS/ducss-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/DUCSS/ducss-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DUCSS/ducss-site/statuses/{sha}","languages_url":"https://api.github.com/repos/DUCSS/ducss-site/languages","stargazers_url":"https://api.github.com/repos/DUCSS/ducss-site/stargazers","contributors_url":"https://api.github.com/repos/DUCSS/ducss-site/contributors","subscribers_url":"https://api.github.com/repos/DUCSS/ducss-site/subscribers","subscription_url":"https://api.github.com/repos/DUCSS/ducss-site/subscription","commits_url":"https://api.github.com/repos/DUCSS/ducss-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/DUCSS/ducss-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/DUCSS/ducss-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/DUCSS/ducss-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/DUCSS/ducss-site/contents/{+path}","compare_url":"https://api.github.com/repos/DUCSS/ducss-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DUCSS/ducss-site/merges","archive_url":"https://api.github.com/repos/DUCSS/ducss-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DUCSS/ducss-site/downloads","issues_url":"https://api.github.com/repos/DUCSS/ducss-site/issues{/number}","pulls_url":"https://api.github.com/repos/DUCSS/ducss-site/pulls{/number}","milestones_url":"https://api.github.com/repos/DUCSS/ducss-site/milestones{/number}","notifications_url":"https://api.github.com/repos/DUCSS/ducss-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DUCSS/ducss-site/labels{/name}","releases_url":"https://api.github.com/repos/DUCSS/ducss-site/releases{/id}","created_at":"2014-08-25T20:31:44Z","updated_at":"2015-08-23T22:33:46Z","pushed_at":"2015-10-11T18:22:03Z","git_url":"git://github.com/DUCSS/ducss-site.git","ssh_url":"git@github.com:DUCSS/ducss-site.git","clone_url":"https://github.com/DUCSS/ducss-site.git","svn_url":"https://github.com/DUCSS/ducss-site","homepage":"","size":1224,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40"},"html":{"href":"https://github.com/DUCSS/ducss-site/pull/40"},"issue":{"href":"https://api.github.com/repos/DUCSS/ducss-site/issues/40"},"comments":{"href":"https://api.github.com/repos/DUCSS/ducss-site/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/DUCSS/ducss-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DUCSS/ducss-site/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/DUCSS/ducss-site/statuses/21f57a5100d1e02e03b07521cef53792a1784f8c"}}}}