{"action":"created","comment":{"url":"https://api.github.com/repos/ndlib/honeycomb/pulls/comments/50434518","id":50434518,"diff_hunk":"@@ -0,0 +1,10 @@\n+class CreateJoinTablePagesItems < ActiveRecord::Migration\n+  def change\n+    create_join_table :pages, :items do |t|\n+      t.integer :item_id\n+      t.integer :page_id\n+      t.index [:page_id, :item_id]\n+      t.index [:item_id, :page_id]\n+    end\n+  end","path":"db/migrate/20151125174835_create_join_table_pages_items.rb","position":9,"original_position":9,"commit_id":"259b1310dac49e4f735be023f34c8b3b691c091f","original_commit_id":"259b1310dac49e4f735be023f34c8b3b691c091f","user":{"login":"rfox2","id":9285578,"avatar_url":"https://avatars.githubusercontent.com/u/9285578?v=3","gravatar_id":"","url":"https://api.github.com/users/rfox2","html_url":"https://github.com/rfox2","followers_url":"https://api.github.com/users/rfox2/followers","following_url":"https://api.github.com/users/rfox2/following{/other_user}","gists_url":"https://api.github.com/users/rfox2/gists{/gist_id}","starred_url":"https://api.github.com/users/rfox2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfox2/subscriptions","organizations_url":"https://api.github.com/users/rfox2/orgs","repos_url":"https://api.github.com/users/rfox2/repos","events_url":"https://api.github.com/users/rfox2/events{/privacy}","received_events_url":"https://api.github.com/users/rfox2/received_events","type":"User","site_admin":false},"body":"Added the dual FKCs","created_at":"2016-01-21T17:38:52Z","updated_at":"2016-01-21T17:38:52Z","html_url":"https://github.com/ndlib/honeycomb/pull/299#discussion_r50434518","pull_request_url":"https://api.github.com/repos/ndlib/honeycomb/pulls/299","_links":{"self":{"href":"https://api.github.com/repos/ndlib/honeycomb/pulls/comments/50434518"},"html":{"href":"https://github.com/ndlib/honeycomb/pull/299#discussion_r50434518"},"pull_request":{"href":"https://api.github.com/repos/ndlib/honeycomb/pulls/299"}}},"pull_request":{"url":"https://api.github.com/repos/ndlib/honeycomb/pulls/299","id":53165336,"html_url":"https://github.com/ndlib/honeycomb/pull/299","diff_url":"https://github.com/ndlib/honeycomb/pull/299.diff","patch_url":"https://github.com/ndlib/honeycomb/pull/299.patch","issue_url":"https://api.github.com/repos/ndlib/honeycomb/issues/299","number":299,"state":"open","locked":false,"title":"Dec 682 associate pages and items","user":{"login":"rfox2","id":9285578,"avatar_url":"https://avatars.githubusercontent.com/u/9285578?v=3","gravatar_id":"","url":"https://api.github.com/users/rfox2","html_url":"https://github.com/rfox2","followers_url":"https://api.github.com/users/rfox2/followers","following_url":"https://api.github.com/users/rfox2/following{/other_user}","gists_url":"https://api.github.com/users/rfox2/gists{/gist_id}","starred_url":"https://api.github.com/users/rfox2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfox2/subscriptions","organizations_url":"https://api.github.com/users/rfox2/orgs","repos_url":"https://api.github.com/users/rfox2/repos","events_url":"https://api.github.com/users/rfox2/events{/privacy}","received_events_url":"https://api.github.com/users/rfox2/received_events","type":"User","site_admin":false},"body":"What: Added functionality to associate pages and items (images)\r\nHow:\r\n\r\n* Created join model\r\n* Created services to destroy associations\r\n* Created services to manage page parsing on saves\r\n* Added code that checks for page associations when an item image is updates, and replaces the image reference on associated pages\r\n* Added a UI panel to indicate when an item is associated with one or more pages, and disables the delete button for that item\r\n* Refactored V1 API output to include associated items for pages","created_at":"2015-12-09T19:23:40Z","updated_at":"2016-01-21T17:38:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c73fd8e7f083696a9f2df22c7fd50ddfb9bb286","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ndlib/honeycomb/pulls/299/commits","review_comments_url":"https://api.github.com/repos/ndlib/honeycomb/pulls/299/comments","review_comment_url":"https://api.github.com/repos/ndlib/honeycomb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndlib/honeycomb/issues/299/comments","statuses_url":"https://api.github.com/repos/ndlib/honeycomb/statuses/259b1310dac49e4f735be023f34c8b3b691c091f","head":{"label":"ndlib:DEC-682-associate-pages-and-items","ref":"DEC-682-associate-pages-and-items","sha":"259b1310dac49e4f735be023f34c8b3b691c091f","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":25221636,"name":"honeycomb","full_name":"ndlib/honeycomb","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/honeycomb","description":"Honeycomb provides basic collection and item administration, as well as serialization of your collections so they can be used by external applications.","fork":false,"url":"https://api.github.com/repos/ndlib/honeycomb","forks_url":"https://api.github.com/repos/ndlib/honeycomb/forks","keys_url":"https://api.github.com/repos/ndlib/honeycomb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/honeycomb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/honeycomb/teams","hooks_url":"https://api.github.com/repos/ndlib/honeycomb/hooks","issue_events_url":"https://api.github.com/repos/ndlib/honeycomb/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/honeycomb/events","assignees_url":"https://api.github.com/repos/ndlib/honeycomb/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/honeycomb/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/honeycomb/tags","blobs_url":"https://api.github.com/repos/ndlib/honeycomb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/honeycomb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/honeycomb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/honeycomb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/honeycomb/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/honeycomb/languages","stargazers_url":"https://api.github.com/repos/ndlib/honeycomb/stargazers","contributors_url":"https://api.github.com/repos/ndlib/honeycomb/contributors","subscribers_url":"https://api.github.com/repos/ndlib/honeycomb/subscribers","subscription_url":"https://api.github.com/repos/ndlib/honeycomb/subscription","commits_url":"https://api.github.com/repos/ndlib/honeycomb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/honeycomb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/honeycomb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/honeycomb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/honeycomb/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/honeycomb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/honeycomb/merges","archive_url":"https://api.github.com/repos/ndlib/honeycomb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/honeycomb/downloads","issues_url":"https://api.github.com/repos/ndlib/honeycomb/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/honeycomb/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/honeycomb/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/honeycomb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/honeycomb/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/honeycomb/releases{/id}","created_at":"2014-10-14T18:55:34Z","updated_at":"2016-01-19T14:49:12Z","pushed_at":"2016-01-21T17:20:16Z","git_url":"git://github.com/ndlib/honeycomb.git","ssh_url":"git@github.com:ndlib/honeycomb.git","clone_url":"https://github.com/ndlib/honeycomb.git","svn_url":"https://github.com/ndlib/honeycomb","homepage":"","size":18359,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"ndlib:master","ref":"master","sha":"77252adf0ae5786ef606564fe9248ef4fad5e777","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":25221636,"name":"honeycomb","full_name":"ndlib/honeycomb","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/honeycomb","description":"Honeycomb provides basic collection and item administration, as well as serialization of your collections so they can be used by external applications.","fork":false,"url":"https://api.github.com/repos/ndlib/honeycomb","forks_url":"https://api.github.com/repos/ndlib/honeycomb/forks","keys_url":"https://api.github.com/repos/ndlib/honeycomb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/honeycomb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/honeycomb/teams","hooks_url":"https://api.github.com/repos/ndlib/honeycomb/hooks","issue_events_url":"https://api.github.com/repos/ndlib/honeycomb/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/honeycomb/events","assignees_url":"https://api.github.com/repos/ndlib/honeycomb/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/honeycomb/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/honeycomb/tags","blobs_url":"https://api.github.com/repos/ndlib/honeycomb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/honeycomb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/honeycomb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/honeycomb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/honeycomb/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/honeycomb/languages","stargazers_url":"https://api.github.com/repos/ndlib/honeycomb/stargazers","contributors_url":"https://api.github.com/repos/ndlib/honeycomb/contributors","subscribers_url":"https://api.github.com/repos/ndlib/honeycomb/subscribers","subscription_url":"https://api.github.com/repos/ndlib/honeycomb/subscription","commits_url":"https://api.github.com/repos/ndlib/honeycomb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/honeycomb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/honeycomb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/honeycomb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/honeycomb/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/honeycomb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/honeycomb/merges","archive_url":"https://api.github.com/repos/ndlib/honeycomb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/honeycomb/downloads","issues_url":"https://api.github.com/repos/ndlib/honeycomb/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/honeycomb/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/honeycomb/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/honeycomb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/honeycomb/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/honeycomb/releases{/id}","created_at":"2014-10-14T18:55:34Z","updated_at":"2016-01-19T14:49:12Z","pushed_at":"2016-01-21T17:20:16Z","git_url":"git://github.com/ndlib/honeycomb.git","ssh_url":"git@github.com:ndlib/honeycomb.git","clone_url":"https://github.com/ndlib/honeycomb.git","svn_url":"https://github.com/ndlib/honeycomb","homepage":"","size":18359,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndlib/honeycomb/pulls/299"},"html":{"href":"https://github.com/ndlib/honeycomb/pull/299"},"issue":{"href":"https://api.github.com/repos/ndlib/honeycomb/issues/299"},"comments":{"href":"https://api.github.com/repos/ndlib/honeycomb/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/ndlib/honeycomb/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/ndlib/honeycomb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndlib/honeycomb/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/ndlib/honeycomb/statuses/259b1310dac49e4f735be023f34c8b3b691c091f"}}}}