{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/101636137","pull_request_review_id":22371980,"id":101636137,"diff_hunk":"@@ -0,0 +1,81 @@\n+class AddVmTableComments < ActiveRecord::Migration[5.0]\n+  def change\n+    change_table_comment :vms, \"Virtual Machines\"\n+\n+    change_column_comment :vms, :autostart, \"A boolean value that indicates whether or not the VM is set to autostart.\"\n+    change_column_comment :vms, :availability_zone_id, \"FK to the AVAILABILITY_ZONES table.\"\n+    change_column_comment :vms, :busy, \"HELP\"\n+    change_column_comment :vms, :boot_time, \"The last time the VM was started.\"\n+    change_column_comment :vms, :cloud, \"HELP\"\n+    change_column_comment :vms, :cloud_network_id, \"FK to the CLOUD_NETWORKS table.\"\n+    change_column_comment :vms, :cloud_subnet_id, \"FK to the CLOUD_SUBNETS table.\"\n+    change_column_comment :vms, :cloud_tenant_id, \"FK to the CLOUD_TENANTS table.\"\n+    change_column_comment :vms, :config_xml, \"HELP\"\n+    change_column_comment :vms, :connection_state, \"HELP\"\n+    change_column_comment :vms, :cpu_affinity, \"HELP\"\n+    change_column_comment :vms, :cpu_hot_add_enabled, \"HELP\"\n+    change_column_comment :vms, :cpu_hot_remove_enabled, \"HELP\"\n+    change_column_comment :vms, :cpu_limit, \"HELP\"\n+    change_column_comment :vms, :cpu_reserve, \"HELP\"\n+    change_column_comment :vms, :cpu_reserve_expand, \"HELP\"\n+    change_column_comment :vms, :cpu_shares, \"HELP\"\n+    change_column_comment :vms, :cpu_shares_level, \"HELP\"\n+    change_column_comment :vms, :created_on, \"The date the VM was added to ManageIQ inventory.\"\n+    change_column_comment :vms, :deprecated, \"HELP\"\n+    change_column_comment :vms, :description, \"A custom description that users can add within ManageIQ.\"\n+    change_column_comment :vms, :ems_created_on, \"Date the associated EMS was created.\"\n+    change_column_comment :vms, :ems_id, \"FK to the EXT_MANAGEMENT_SYSTEMS table.\"\n+    change_column_comment :vms, :evm_owner_id, \"HELP\"\n+    change_column_comment :vms, :ems_ref_obj, \"HELP\"\n+    change_column_comment :vms, :ems_cluster_id, \"HELP\"\n+    change_column_comment :vms, :fault_tolerance, \"HELP\"\n+    change_column_comment :vms, :flavor_id, \"FK to the FLAVORS table.\"\n+    change_column_comment :vms, :format, \"HELP\"\n+    change_column_comment :vms, :guid, \"An identifier used to uniquely identify the VM internally.\"\n+    change_column_comment :vms, :id, \"The internal database ID.\"\n+    change_column_comment :vms, :host_id, \"FK to the HOSTS table.\"","path":"db/migrate/20170216193758_add_vm_table_comments.rb","position":36,"original_position":36,"commit_id":"f2643083c1717de37068f46fe9f5f0a677810e53","original_commit_id":"f2643083c1717de37068f46fe9f5f0a677810e53","user":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"body":"I feel like these foreign keys need more description than just \"an FK\".  For example, this could be `The host that this VM/Template currently resides on.  FK to the hosts table`","created_at":"2017-02-16T21:53:08Z","updated_at":"2017-02-16T21:53:08Z","html_url":"https://github.com/ManageIQ/manageiq/pull/13954#discussion_r101636137","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/101636137"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/13954#discussion_r101636137"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954","id":106618071,"html_url":"https://github.com/ManageIQ/manageiq/pull/13954","diff_url":"https://github.com/ManageIQ/manageiq/pull/13954.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/13954.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/13954","number":13954,"state":"open","locked":false,"title":"[WIP] Add comments to the vms table","user":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"body":"As of Rails 5 we can add comments to tables and columns within the database. This is useful for developers, both within RedHat and externally, to help develop for the application.\r\n\r\nAs per the Rails 5 documentation, \"It's highly recommended to specify comments in migrations for applications with large databases as it helps people to understand data model and generate documentation.\"\r\n\r\nTo that end I've begun with the `vms` table, and documented as much as I could. However, I need your help to finish it. Anywhere that you see the word \"HELP\" means I don't fully understand what the column does and need someone to fill in that information for me.","created_at":"2017-02-16T21:29:43Z","updated_at":"2017-02-16T21:53:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5532409bb7214a940ed4e40057372ab7c13622bd","assignee":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"assignees":[{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/13954/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/f2643083c1717de37068f46fe9f5f0a677810e53","head":{"label":"djberg96:db_comments","ref":"db_comments","sha":"f2643083c1717de37068f46fe9f5f0a677810e53","user":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"repo":{"id":36390845,"name":"manageiq","full_name":"djberg96/manageiq","owner":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djberg96/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/djberg96/manageiq","forks_url":"https://api.github.com/repos/djberg96/manageiq/forks","keys_url":"https://api.github.com/repos/djberg96/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djberg96/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djberg96/manageiq/teams","hooks_url":"https://api.github.com/repos/djberg96/manageiq/hooks","issue_events_url":"https://api.github.com/repos/djberg96/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/djberg96/manageiq/events","assignees_url":"https://api.github.com/repos/djberg96/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/djberg96/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/djberg96/manageiq/tags","blobs_url":"https://api.github.com/repos/djberg96/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djberg96/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djberg96/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/djberg96/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djberg96/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/djberg96/manageiq/languages","stargazers_url":"https://api.github.com/repos/djberg96/manageiq/stargazers","contributors_url":"https://api.github.com/repos/djberg96/manageiq/contributors","subscribers_url":"https://api.github.com/repos/djberg96/manageiq/subscribers","subscription_url":"https://api.github.com/repos/djberg96/manageiq/subscription","commits_url":"https://api.github.com/repos/djberg96/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/djberg96/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/djberg96/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/djberg96/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/djberg96/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/djberg96/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djberg96/manageiq/merges","archive_url":"https://api.github.com/repos/djberg96/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djberg96/manageiq/downloads","issues_url":"https://api.github.com/repos/djberg96/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/djberg96/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/djberg96/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/djberg96/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djberg96/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/djberg96/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/djberg96/manageiq/deployments","created_at":"2015-05-27T19:34:30Z","updated_at":"2016-01-18T14:43:59Z","pushed_at":"2017-02-16T21:26:21Z","git_url":"git://github.com/djberg96/manageiq.git","ssh_url":"git@github.com:djberg96/manageiq.git","clone_url":"https://github.com/djberg96/manageiq.git","svn_url":"https://github.com/djberg96/manageiq","homepage":"manageiq.org","size":195195,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"5f79ec5731075d052eed23401bbb40937f36ca7e","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2017-02-16T19:29:21Z","pushed_at":"2017-02-16T21:45:01Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":198012,"stargazers_count":400,"watchers_count":400,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":417,"mirror_url":null,"open_issues_count":833,"forks":417,"open_issues":833,"watchers":400,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/13954"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/13954"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/13954/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/13954/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/f2643083c1717de37068f46fe9f5f0a677810e53"}}}}
{"actor":{"display_login":"Fryguy"}}