{"action":"created","comment":{"url":"https://api.github.com/repos/fsek/web/pulls/comments/27464899","id":27464899,"diff_hunk":"@@ -0,0 +1,449 @@\n+# encoding: UTF-8\n+class DatabaseStructure < ActiveRecord::Migration\n+  def change\n+    unless table_exists? :album_categories\n+      create_table 'album_categories', force: :cascade do |t|\n+        t.string 'name', limit: 255\n+        t.text 'text', limit: 65535\n+        t.boolean 'visible', limit: 1\n+        t.datetime 'created_at'\n+        t.datetime 'updated_at'\n+      end\n+    end\n+    unless table_exists? :album_categories_albums\n+      create_table 'album_categories_albums', id: false, force: :cascade do |t|\n+        t.integer 'album_id', limit: 4\n+        t.integer 'album_category_id', limit: 4\n+      end\n+    end\n+    unless table_exists? :albums\n+      create_table 'albums', force: :cascade do |t|\n+        t.string 'title', limit: 255\n+        t.text 'description', limit: 65535\n+        t.string 'author', limit: 255\n+        t.string 'location', limit: 255\n+        t.boolean 'public', limit: 1\n+        t.datetime 'start_date'\n+        t.datetime 'end_date'\n+        t.datetime 'created_at'\n+        t.datetime 'updated_at'\n+        t.string 'category', limit: 255\n+        t.integer 'photo_category_id', limit: 4\n+      end\n+    end\n+    unless table_exists? :album_images\n+      create_table 'albums_images', id: false, force: :cascade do |t|\n+        t.integer 'album_id', limit: 4\n+        t.integer 'image_id', limit: 4\n+      end\n+    end\n+    unless table_exists? :albums_subcategories\n+      create_table 'albums_subcategories', id: false, force: :cascade do |t|\n+        t.integer 'album_id', limit: 4\n+        t.integer 'subcategory_id', limit: 4\n+      end\n+    end\n+    unless table_exists? :cafe_works\n+      create_table :cafe_works do |t|\n+        t.datetime  :work_day\n+        t.integer   :pass\n+        t.integer   :lp\n+        t.integer   :lv\n+        t.integer   :profile_id\n+        t.string    :name\n+        t.string    :lastname\n+        t.string    :phone","path":"db/migrate/0_database_structure.rb","position":55,"original_position":55,"commit_id":"bd4eed6f8f456debe54a9d143699e98897837b8e","original_commit_id":"bd4eed6f8f456debe54a9d143699e98897837b8e","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Unnecessary spacing detected.<br>Put one space between the method name and the first argument.","created_at":"2015-03-31T09:37:50Z","updated_at":"2015-03-31T09:37:50Z","html_url":"https://github.com/fsek/web/pull/144#discussion_r27464899","pull_request_url":"https://api.github.com/repos/fsek/web/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/fsek/web/pulls/comments/27464899"},"html":{"href":"https://github.com/fsek/web/pull/144#discussion_r27464899"},"pull_request":{"href":"https://api.github.com/repos/fsek/web/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/fsek/web/pulls/144","id":32229074,"html_url":"https://github.com/fsek/web/pull/144","diff_url":"https://github.com/fsek/web/pull/144.diff","patch_url":"https://github.com/fsek/web/pull/144.patch","issue_url":"https://api.github.com/repos/fsek/web/issues/144","number":144,"state":"open","locked":false,"title":"Fix migration conflicts","user":{"login":"davidwessman","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwessman","html_url":"https://github.com/davidwessman","followers_url":"https://api.github.com/users/davidwessman/followers","following_url":"https://api.github.com/users/davidwessman/following{/other_user}","gists_url":"https://api.github.com/users/davidwessman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwessman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwessman/subscriptions","organizations_url":"https://api.github.com/users/davidwessman/orgs","repos_url":"https://api.github.com/users/davidwessman/repos","events_url":"https://api.github.com/users/davidwessman/events{/privacy}","received_events_url":"https://api.github.com/users/davidwessman/received_events","type":"User","site_admin":false},"body":"Merged #141 and the migration to create the CafeWorks-table was not run.\r\n\r\nCurrent state of schema.rb:\r\nhttps://gist.github.com/davidwessman/48a930a0ad00c8fb3de7\r\n\r\n#108\r\n@jforberg \r\nShould we move all the migrations into a file with similar structure as the fsek-structure and set this number to 0. Then we reset the numbers in the migrations-table on production.\r\n","created_at":"2015-03-30T14:03:30Z","updated_at":"2015-03-31T09:37:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2df4abe1b9cddfbcb5146b2459ab142b05f52d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fsek/web/pulls/144/commits","review_comments_url":"https://api.github.com/repos/fsek/web/pulls/144/comments","review_comment_url":"https://api.github.com/repos/fsek/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsek/web/issues/144/comments","statuses_url":"https://api.github.com/repos/fsek/web/statuses/bd4eed6f8f456debe54a9d143699e98897837b8e","head":{"label":"fsek:migrationconflicts","ref":"migrationconflicts","sha":"bd4eed6f8f456debe54a9d143699e98897837b8e","user":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"repo":{"id":27583674,"name":"web","full_name":"fsek/web","owner":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsek/web","description":"F-sektionens hemsida","fork":false,"url":"https://api.github.com/repos/fsek/web","forks_url":"https://api.github.com/repos/fsek/web/forks","keys_url":"https://api.github.com/repos/fsek/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsek/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsek/web/teams","hooks_url":"https://api.github.com/repos/fsek/web/hooks","issue_events_url":"https://api.github.com/repos/fsek/web/issues/events{/number}","events_url":"https://api.github.com/repos/fsek/web/events","assignees_url":"https://api.github.com/repos/fsek/web/assignees{/user}","branches_url":"https://api.github.com/repos/fsek/web/branches{/branch}","tags_url":"https://api.github.com/repos/fsek/web/tags","blobs_url":"https://api.github.com/repos/fsek/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsek/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsek/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsek/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsek/web/statuses/{sha}","languages_url":"https://api.github.com/repos/fsek/web/languages","stargazers_url":"https://api.github.com/repos/fsek/web/stargazers","contributors_url":"https://api.github.com/repos/fsek/web/contributors","subscribers_url":"https://api.github.com/repos/fsek/web/subscribers","subscription_url":"https://api.github.com/repos/fsek/web/subscription","commits_url":"https://api.github.com/repos/fsek/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsek/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsek/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsek/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsek/web/contents/{+path}","compare_url":"https://api.github.com/repos/fsek/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsek/web/merges","archive_url":"https://api.github.com/repos/fsek/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsek/web/downloads","issues_url":"https://api.github.com/repos/fsek/web/issues{/number}","pulls_url":"https://api.github.com/repos/fsek/web/pulls{/number}","milestones_url":"https://api.github.com/repos/fsek/web/milestones{/number}","notifications_url":"https://api.github.com/repos/fsek/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsek/web/labels{/name}","releases_url":"https://api.github.com/repos/fsek/web/releases{/id}","created_at":"2014-12-05T09:13:19Z","updated_at":"2015-03-31T09:02:04Z","pushed_at":"2015-03-31T09:37:44Z","git_url":"git://github.com/fsek/web.git","ssh_url":"git@github.com:fsek/web.git","clone_url":"https://github.com/fsek/web.git","svn_url":"https://github.com/fsek/web","homepage":"http://fsektionen.se","size":211405,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":57,"forks":1,"open_issues":57,"watchers":2,"default_branch":"master"}},"base":{"label":"fsek:master","ref":"master","sha":"ce9a5f3c32ba9dfaae4008c3a2dfd2764d33b386","user":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"repo":{"id":27583674,"name":"web","full_name":"fsek/web","owner":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsek/web","description":"F-sektionens hemsida","fork":false,"url":"https://api.github.com/repos/fsek/web","forks_url":"https://api.github.com/repos/fsek/web/forks","keys_url":"https://api.github.com/repos/fsek/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsek/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsek/web/teams","hooks_url":"https://api.github.com/repos/fsek/web/hooks","issue_events_url":"https://api.github.com/repos/fsek/web/issues/events{/number}","events_url":"https://api.github.com/repos/fsek/web/events","assignees_url":"https://api.github.com/repos/fsek/web/assignees{/user}","branches_url":"https://api.github.com/repos/fsek/web/branches{/branch}","tags_url":"https://api.github.com/repos/fsek/web/tags","blobs_url":"https://api.github.com/repos/fsek/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsek/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsek/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsek/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsek/web/statuses/{sha}","languages_url":"https://api.github.com/repos/fsek/web/languages","stargazers_url":"https://api.github.com/repos/fsek/web/stargazers","contributors_url":"https://api.github.com/repos/fsek/web/contributors","subscribers_url":"https://api.github.com/repos/fsek/web/subscribers","subscription_url":"https://api.github.com/repos/fsek/web/subscription","commits_url":"https://api.github.com/repos/fsek/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsek/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsek/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsek/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsek/web/contents/{+path}","compare_url":"https://api.github.com/repos/fsek/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsek/web/merges","archive_url":"https://api.github.com/repos/fsek/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsek/web/downloads","issues_url":"https://api.github.com/repos/fsek/web/issues{/number}","pulls_url":"https://api.github.com/repos/fsek/web/pulls{/number}","milestones_url":"https://api.github.com/repos/fsek/web/milestones{/number}","notifications_url":"https://api.github.com/repos/fsek/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsek/web/labels{/name}","releases_url":"https://api.github.com/repos/fsek/web/releases{/id}","created_at":"2014-12-05T09:13:19Z","updated_at":"2015-03-31T09:02:04Z","pushed_at":"2015-03-31T09:37:44Z","git_url":"git://github.com/fsek/web.git","ssh_url":"git@github.com:fsek/web.git","clone_url":"https://github.com/fsek/web.git","svn_url":"https://github.com/fsek/web","homepage":"http://fsektionen.se","size":211405,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":57,"forks":1,"open_issues":57,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsek/web/pulls/144"},"html":{"href":"https://github.com/fsek/web/pull/144"},"issue":{"href":"https://api.github.com/repos/fsek/web/issues/144"},"comments":{"href":"https://api.github.com/repos/fsek/web/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/fsek/web/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/fsek/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsek/web/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/fsek/web/statuses/bd4eed6f8f456debe54a9d143699e98897837b8e"}}}}