{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/50662906","id":50662906,"diff_hunk":"@@ -0,0 +1,75 @@\n+# encoding: UTF-8\n+# This file is auto-generated from the current state of the database. Instead\n+# of editing this file, please use the migrations feature of Active Record to\n+# incrementally modify your database, and then regenerate this schema definition.\n+#\n+# Note that this schema.rb definition is the authoritative source for your\n+# database schema. If you need to create the application database on another\n+# system, you should be using db:schema:load, not running all the migrations\n+# from scratch. The latter is a flawed and unsustainable approach (the more migrations\n+# you'll amass, the slower it'll run and the greater likelihood for issues).\n+#\n+# It's strongly recommended that you check this file into your version control system.\n+\n+ActiveRecord::Schema.define(version: 20160124132451) do\n+\n+  # These are extensions that must be enabled in order to support this database\n+  enable_extension \"plpgsql\"\n+\n+  create_table \"comments\", force: :cascade do |t|\n+    t.integer  \"user_id\"\n+    t.integer  \"post_id\"\n+    t.text     \"content\"\n+    t.datetime \"created_at\", null: false\n+    t.datetime \"updated_at\", null: false\n+  end\n+\n+  add_index \"comments\", [\"post_id\"], name: \"index_comments_on_post_id\", using: :btree\n+  add_index \"comments\", [\"user_id\"], name: \"index_comments_on_user_id\", using: :btree\n+\n+  create_table \"likes\", force: :cascade do |t|\n+    t.integer  \"comment_id\"\n+    t.datetime \"created_at\", null: false\n+    t.datetime \"updated_at\", null: false\n+  end\n+\n+  add_index \"likes\", [\"comment_id\"], name: \"index_likes_on_comment_id\", using: :btree\n+\n+  create_table \"posts\", force: :cascade do |t|\n+    t.string   \"caption\"\n+    t.datetime \"created_at\",         null: false\n+    t.datetime \"updated_at\",         null: false\n+    t.string   \"image_file_name\"\n+    t.string   \"image_content_type\"\n+    t.integer  \"image_file_size\"\n+    t.datetime \"image_updated_at\"\n+    t.integer  \"user_id\"\n+  end\n+\n+  add_index \"posts\", [\"user_id\"], name: \"index_posts_on_user_id\", using: :btree\n+\n+  create_table \"users\", force: :cascade do |t|\n+    t.string   \"email\",                  default: \"\", null: false\n+    t.string   \"encrypted_password\",     default: \"\", null: false\n+    t.string   \"reset_password_token\"\n+    t.datetime \"reset_password_sent_at\"\n+    t.datetime \"remember_created_at\"\n+    t.integer  \"sign_in_count\",          default: 0,  null: false\n+    t.datetime \"current_sign_in_at\"\n+    t.datetime \"last_sign_in_at\"\n+    t.inet     \"current_sign_in_ip\"\n+    t.inet     \"last_sign_in_ip\"\n+    t.datetime \"created_at\",                          null: false\n+    t.datetime \"updated_at\",                          null: false\n+    t.string   \"user_name\"\n+  end\n+\n+  add_index \"users\", [\"email\"], name: \"index_users_on_email\", unique: true, using: :btree\n+  add_index \"users\", [\"reset_password_token\"], name: \"index_users_on_reset_password_token\", unique: true, using: :btree\n+  add_index \"users\", [\"user_name\"], name: \"index_users_on_user_name\", unique: true, using: :btree","path":"instagram/db/schema.rb","position":69,"original_position":69,"commit_id":"241a6bed77f2ada0749194171d92175d30e88949","original_commit_id":"241a6bed77f2ada0749194171d92175d30e88949","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":"Metrics/LineLength: Line is too long. [97/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)","created_at":"2016-01-25T08:07:55Z","updated_at":"2016-01-25T08:07:55Z","html_url":"https://github.com/makersacademy/instagram-challenge/pull/161#discussion_r50662906","pull_request_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/50662906"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/161#discussion_r50662906"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161","id":56975797,"html_url":"https://github.com/makersacademy/instagram-challenge/pull/161","diff_url":"https://github.com/makersacademy/instagram-challenge/pull/161.diff","patch_url":"https://github.com/makersacademy/instagram-challenge/pull/161.patch","issue_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/161","number":161,"state":"open","locked":false,"title":"Instagram-challenge","user":{"login":"gareth4192","id":13347382,"avatar_url":"https://avatars.githubusercontent.com/u/13347382?v=3","gravatar_id":"","url":"https://api.github.com/users/gareth4192","html_url":"https://github.com/gareth4192","followers_url":"https://api.github.com/users/gareth4192/followers","following_url":"https://api.github.com/users/gareth4192/following{/other_user}","gists_url":"https://api.github.com/users/gareth4192/gists{/gist_id}","starred_url":"https://api.github.com/users/gareth4192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gareth4192/subscriptions","organizations_url":"https://api.github.com/users/gareth4192/orgs","repos_url":"https://api.github.com/users/gareth4192/repos","events_url":"https://api.github.com/users/gareth4192/events{/privacy}","received_events_url":"https://api.github.com/users/gareth4192/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-23T13:01:05Z","updated_at":"2016-01-25T08:07:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8274cbcb6673c7f22d129a17ebb88cb8c7a6951a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161/commits","review_comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161/comments","review_comment_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/161/comments","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/241a6bed77f2ada0749194171d92175d30e88949","head":{"label":"gareth4192:master","ref":"master","sha":"241a6bed77f2ada0749194171d92175d30e88949","user":{"login":"gareth4192","id":13347382,"avatar_url":"https://avatars.githubusercontent.com/u/13347382?v=3","gravatar_id":"","url":"https://api.github.com/users/gareth4192","html_url":"https://github.com/gareth4192","followers_url":"https://api.github.com/users/gareth4192/followers","following_url":"https://api.github.com/users/gareth4192/following{/other_user}","gists_url":"https://api.github.com/users/gareth4192/gists{/gist_id}","starred_url":"https://api.github.com/users/gareth4192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gareth4192/subscriptions","organizations_url":"https://api.github.com/users/gareth4192/orgs","repos_url":"https://api.github.com/users/gareth4192/repos","events_url":"https://api.github.com/users/gareth4192/events{/privacy}","received_events_url":"https://api.github.com/users/gareth4192/received_events","type":"User","site_admin":false},"repo":{"id":50214190,"name":"instagram-challenge","full_name":"gareth4192/instagram-challenge","owner":{"login":"gareth4192","id":13347382,"avatar_url":"https://avatars.githubusercontent.com/u/13347382?v=3","gravatar_id":"","url":"https://api.github.com/users/gareth4192","html_url":"https://github.com/gareth4192","followers_url":"https://api.github.com/users/gareth4192/followers","following_url":"https://api.github.com/users/gareth4192/following{/other_user}","gists_url":"https://api.github.com/users/gareth4192/gists{/gist_id}","starred_url":"https://api.github.com/users/gareth4192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gareth4192/subscriptions","organizations_url":"https://api.github.com/users/gareth4192/orgs","repos_url":"https://api.github.com/users/gareth4192/repos","events_url":"https://api.github.com/users/gareth4192/events{/privacy}","received_events_url":"https://api.github.com/users/gareth4192/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gareth4192/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/gareth4192/instagram-challenge","forks_url":"https://api.github.com/repos/gareth4192/instagram-challenge/forks","keys_url":"https://api.github.com/repos/gareth4192/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gareth4192/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gareth4192/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/gareth4192/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/gareth4192/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/gareth4192/instagram-challenge/events","assignees_url":"https://api.github.com/repos/gareth4192/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/gareth4192/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/gareth4192/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/gareth4192/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gareth4192/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gareth4192/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/gareth4192/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gareth4192/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/gareth4192/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/gareth4192/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/gareth4192/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/gareth4192/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/gareth4192/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/gareth4192/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/gareth4192/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/gareth4192/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/gareth4192/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/gareth4192/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/gareth4192/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gareth4192/instagram-challenge/merges","archive_url":"https://api.github.com/repos/gareth4192/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gareth4192/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/gareth4192/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/gareth4192/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/gareth4192/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/gareth4192/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gareth4192/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/gareth4192/instagram-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/gareth4192/instagram-challenge/deployments","created_at":"2016-01-22T23:33:48Z","updated_at":"2016-01-22T23:44:30Z","pushed_at":"2016-01-25T08:07:31Z","git_url":"git://github.com/gareth4192/instagram-challenge.git","ssh_url":"git@github.com:gareth4192/instagram-challenge.git","clone_url":"https://github.com/gareth4192/instagram-challenge.git","svn_url":"https://github.com/gareth4192/instagram-challenge","homepage":null,"size":300,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"makersacademy:master","ref":"master","sha":"ea4b46af63e6e77a11e9096e462d9615a78210f3","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006364,"name":"instagram-challenge","full_name":"makersacademy/instagram-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/instagram-challenge","description":"Rebuild Instagram","fork":false,"url":"https://api.github.com/repos/makersacademy/instagram-challenge","forks_url":"https://api.github.com/repos/makersacademy/instagram-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/instagram-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/instagram-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/instagram-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/deployments","created_at":"2014-11-22T17:26:37Z","updated_at":"2015-04-02T15:05:17Z","pushed_at":"2016-01-25T08:07:32Z","git_url":"git://github.com/makersacademy/instagram-challenge.git","ssh_url":"git@github.com:makersacademy/instagram-challenge.git","clone_url":"https://github.com/makersacademy/instagram-challenge.git","svn_url":"https://github.com/makersacademy/instagram-challenge","homepage":null,"size":291317,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":214,"mirror_url":null,"open_issues_count":40,"forks":214,"open_issues":40,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/161"},"issue":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/161"},"comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/241a6bed77f2ada0749194171d92175d30e88949"}}}}