{"action":"created","comment":{"url":"https://api.github.com/repos/internetee/registry/pulls/comments/226246536","pull_request_review_id":166017692,"id":226246536,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjI0NjUzNg==","diff_hunk":"@@ -1052,7 +1052,8 @@ CREATE TABLE public.invoices (\n     cancelled_at timestamp without time zone,\n     total numeric(10,2) NOT NULL,\n     in_directo boolean DEFAULT false,\n-    buyer_vat_no character varying\n+    buyer_vat_no character varying,\n+    date date","path":"db/structure.sql","position":31,"original_position":31,"commit_id":"9ea1cf559945e315cd64a291227774bfee351009","original_commit_id":"9ea1cf559945e315cd64a291227774bfee351009","user":{"login":"maciej-szlosarczyk","id":2331765,"node_id":"MDQ6VXNlcjIzMzE3NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/2331765?v=4","gravatar_id":"","url":"https://api.github.com/users/maciej-szlosarczyk","html_url":"https://github.com/maciej-szlosarczyk","followers_url":"https://api.github.com/users/maciej-szlosarczyk/followers","following_url":"https://api.github.com/users/maciej-szlosarczyk/following{/other_user}","gists_url":"https://api.github.com/users/maciej-szlosarczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/maciej-szlosarczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciej-szlosarczyk/subscriptions","organizations_url":"https://api.github.com/users/maciej-szlosarczyk/orgs","repos_url":"https://api.github.com/users/maciej-szlosarczyk/repos","events_url":"https://api.github.com/users/maciej-szlosarczyk/events{/privacy}","received_events_url":"https://api.github.com/users/maciej-szlosarczyk/received_events","type":"User","site_admin":false},"body":"I am not sure if this is the right choice. \r\n\r\nYou need to know that it means the date the invoice was issued, and not due date, and it conflicts with SQL `DATE` keyword.","created_at":"2018-10-18T10:08:28Z","updated_at":"2018-10-18T10:33:40Z","html_url":"https://github.com/internetee/registry/pull/1013#discussion_r226246536","pull_request_url":"https://api.github.com/repos/internetee/registry/pulls/1013","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/internetee/registry/pulls/comments/226246536"},"html":{"href":"https://github.com/internetee/registry/pull/1013#discussion_r226246536"},"pull_request":{"href":"https://api.github.com/repos/internetee/registry/pulls/1013"}}},"pull_request":{"url":"https://api.github.com/repos/internetee/registry/pulls/1013","id":223888073,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzODg4MDcz","html_url":"https://github.com/internetee/registry/pull/1013","diff_url":"https://github.com/internetee/registry/pull/1013.diff","patch_url":"https://github.com/internetee/registry/pull/1013.patch","issue_url":"https://api.github.com/repos/internetee/registry/issues/1013","number":1013,"state":"open","locked":false,"title":"Refactor invoices","user":{"login":"artur-beljajev","id":22315378,"node_id":"MDQ6VXNlcjIyMzE1Mzc4","avatar_url":"https://avatars2.githubusercontent.com/u/22315378?v=4","gravatar_id":"","url":"https://api.github.com/users/artur-beljajev","html_url":"https://github.com/artur-beljajev","followers_url":"https://api.github.com/users/artur-beljajev/followers","following_url":"https://api.github.com/users/artur-beljajev/following{/other_user}","gists_url":"https://api.github.com/users/artur-beljajev/gists{/gist_id}","starred_url":"https://api.github.com/users/artur-beljajev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artur-beljajev/subscriptions","organizations_url":"https://api.github.com/users/artur-beljajev/orgs","repos_url":"https://api.github.com/users/artur-beljajev/repos","events_url":"https://api.github.com/users/artur-beljajev/events{/privacy}","received_events_url":"https://api.github.com/users/artur-beljajev/received_events","type":"User","site_admin":false},"body":"- `runner 'Invoice.cancel_overdue_invoices'` in `schedule.rb` is changed to `rake 'billing:cancel_overdue_invoices'`.\r\n- Verify:\r\n  - Account top-up\r\n  - Cancellation of overdue invoices\r\n- To deploy, `rake data_migrations:populate_invoice_date` should be run after `rake db:migrate`. This task populates `invoices.data` column with the date from `invoices.created_at`.","created_at":"2018-10-18T09:38:55Z","updated_at":"2018-10-18T10:33:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6ee9488a1c4d9f4f93c4d333145c8b9c8f5b59a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1081866709,"node_id":"MDU6TGFiZWwxMDgxODY2NzA5","url":"https://api.github.com/repos/internetee/registry/labels/production%20data%20migration","name":"production data migration","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/internetee/registry/pulls/1013/commits","review_comments_url":"https://api.github.com/repos/internetee/registry/pulls/1013/comments","review_comment_url":"https://api.github.com/repos/internetee/registry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/internetee/registry/issues/1013/comments","statuses_url":"https://api.github.com/repos/internetee/registry/statuses/9ea1cf559945e315cd64a291227774bfee351009","head":{"label":"internetee:refactor-invoices","ref":"refactor-invoices","sha":"9ea1cf559945e315cd64a291227774bfee351009","user":{"login":"internetee","id":7734691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzQ2OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7734691?v=4","gravatar_id":"","url":"https://api.github.com/users/internetee","html_url":"https://github.com/internetee","followers_url":"https://api.github.com/users/internetee/followers","following_url":"https://api.github.com/users/internetee/following{/other_user}","gists_url":"https://api.github.com/users/internetee/gists{/gist_id}","starred_url":"https://api.github.com/users/internetee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetee/subscriptions","organizations_url":"https://api.github.com/users/internetee/orgs","repos_url":"https://api.github.com/users/internetee/repos","events_url":"https://api.github.com/users/internetee/events{/privacy}","received_events_url":"https://api.github.com/users/internetee/received_events","type":"Organization","site_admin":false},"repo":{"id":20292624,"node_id":"MDEwOlJlcG9zaXRvcnkyMDI5MjYyNA==","name":"registry","full_name":"internetee/registry","private":false,"owner":{"login":"internetee","id":7734691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzQ2OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7734691?v=4","gravatar_id":"","url":"https://api.github.com/users/internetee","html_url":"https://github.com/internetee","followers_url":"https://api.github.com/users/internetee/followers","following_url":"https://api.github.com/users/internetee/following{/other_user}","gists_url":"https://api.github.com/users/internetee/gists{/gist_id}","starred_url":"https://api.github.com/users/internetee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetee/subscriptions","organizations_url":"https://api.github.com/users/internetee/orgs","repos_url":"https://api.github.com/users/internetee/repos","events_url":"https://api.github.com/users/internetee/events{/privacy}","received_events_url":"https://api.github.com/users/internetee/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/internetee/registry","description":"TLD Management Software","fork":false,"url":"https://api.github.com/repos/internetee/registry","forks_url":"https://api.github.com/repos/internetee/registry/forks","keys_url":"https://api.github.com/repos/internetee/registry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/internetee/registry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/internetee/registry/teams","hooks_url":"https://api.github.com/repos/internetee/registry/hooks","issue_events_url":"https://api.github.com/repos/internetee/registry/issues/events{/number}","events_url":"https://api.github.com/repos/internetee/registry/events","assignees_url":"https://api.github.com/repos/internetee/registry/assignees{/user}","branches_url":"https://api.github.com/repos/internetee/registry/branches{/branch}","tags_url":"https://api.github.com/repos/internetee/registry/tags","blobs_url":"https://api.github.com/repos/internetee/registry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/internetee/registry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/internetee/registry/git/refs{/sha}","trees_url":"https://api.github.com/repos/internetee/registry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/internetee/registry/statuses/{sha}","languages_url":"https://api.github.com/repos/internetee/registry/languages","stargazers_url":"https://api.github.com/repos/internetee/registry/stargazers","contributors_url":"https://api.github.com/repos/internetee/registry/contributors","subscribers_url":"https://api.github.com/repos/internetee/registry/subscribers","subscription_url":"https://api.github.com/repos/internetee/registry/subscription","commits_url":"https://api.github.com/repos/internetee/registry/commits{/sha}","git_commits_url":"https://api.github.com/repos/internetee/registry/git/commits{/sha}","comments_url":"https://api.github.com/repos/internetee/registry/comments{/number}","issue_comment_url":"https://api.github.com/repos/internetee/registry/issues/comments{/number}","contents_url":"https://api.github.com/repos/internetee/registry/contents/{+path}","compare_url":"https://api.github.com/repos/internetee/registry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/internetee/registry/merges","archive_url":"https://api.github.com/repos/internetee/registry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/internetee/registry/downloads","issues_url":"https://api.github.com/repos/internetee/registry/issues{/number}","pulls_url":"https://api.github.com/repos/internetee/registry/pulls{/number}","milestones_url":"https://api.github.com/repos/internetee/registry/milestones{/number}","notifications_url":"https://api.github.com/repos/internetee/registry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/internetee/registry/labels{/name}","releases_url":"https://api.github.com/repos/internetee/registry/releases{/id}","deployments_url":"https://api.github.com/repos/internetee/registry/deployments","created_at":"2014-05-29T12:13:02Z","updated_at":"2018-10-17T13:24:28Z","pushed_at":"2018-10-18T09:38:56Z","git_url":"git://github.com/internetee/registry.git","ssh_url":"git@github.com:internetee/registry.git","clone_url":"https://github.com/internetee/registry.git","svn_url":"https://github.com/internetee/registry","homepage":"","size":55358,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":220,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":220,"watchers":11,"default_branch":"master"}},"base":{"label":"internetee:master","ref":"master","sha":"b7773d11a0628d637be08237889b887e2a48a4c3","user":{"login":"internetee","id":7734691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzQ2OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7734691?v=4","gravatar_id":"","url":"https://api.github.com/users/internetee","html_url":"https://github.com/internetee","followers_url":"https://api.github.com/users/internetee/followers","following_url":"https://api.github.com/users/internetee/following{/other_user}","gists_url":"https://api.github.com/users/internetee/gists{/gist_id}","starred_url":"https://api.github.com/users/internetee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetee/subscriptions","organizations_url":"https://api.github.com/users/internetee/orgs","repos_url":"https://api.github.com/users/internetee/repos","events_url":"https://api.github.com/users/internetee/events{/privacy}","received_events_url":"https://api.github.com/users/internetee/received_events","type":"Organization","site_admin":false},"repo":{"id":20292624,"node_id":"MDEwOlJlcG9zaXRvcnkyMDI5MjYyNA==","name":"registry","full_name":"internetee/registry","private":false,"owner":{"login":"internetee","id":7734691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzQ2OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7734691?v=4","gravatar_id":"","url":"https://api.github.com/users/internetee","html_url":"https://github.com/internetee","followers_url":"https://api.github.com/users/internetee/followers","following_url":"https://api.github.com/users/internetee/following{/other_user}","gists_url":"https://api.github.com/users/internetee/gists{/gist_id}","starred_url":"https://api.github.com/users/internetee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetee/subscriptions","organizations_url":"https://api.github.com/users/internetee/orgs","repos_url":"https://api.github.com/users/internetee/repos","events_url":"https://api.github.com/users/internetee/events{/privacy}","received_events_url":"https://api.github.com/users/internetee/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/internetee/registry","description":"TLD Management Software","fork":false,"url":"https://api.github.com/repos/internetee/registry","forks_url":"https://api.github.com/repos/internetee/registry/forks","keys_url":"https://api.github.com/repos/internetee/registry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/internetee/registry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/internetee/registry/teams","hooks_url":"https://api.github.com/repos/internetee/registry/hooks","issue_events_url":"https://api.github.com/repos/internetee/registry/issues/events{/number}","events_url":"https://api.github.com/repos/internetee/registry/events","assignees_url":"https://api.github.com/repos/internetee/registry/assignees{/user}","branches_url":"https://api.github.com/repos/internetee/registry/branches{/branch}","tags_url":"https://api.github.com/repos/internetee/registry/tags","blobs_url":"https://api.github.com/repos/internetee/registry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/internetee/registry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/internetee/registry/git/refs{/sha}","trees_url":"https://api.github.com/repos/internetee/registry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/internetee/registry/statuses/{sha}","languages_url":"https://api.github.com/repos/internetee/registry/languages","stargazers_url":"https://api.github.com/repos/internetee/registry/stargazers","contributors_url":"https://api.github.com/repos/internetee/registry/contributors","subscribers_url":"https://api.github.com/repos/internetee/registry/subscribers","subscription_url":"https://api.github.com/repos/internetee/registry/subscription","commits_url":"https://api.github.com/repos/internetee/registry/commits{/sha}","git_commits_url":"https://api.github.com/repos/internetee/registry/git/commits{/sha}","comments_url":"https://api.github.com/repos/internetee/registry/comments{/number}","issue_comment_url":"https://api.github.com/repos/internetee/registry/issues/comments{/number}","contents_url":"https://api.github.com/repos/internetee/registry/contents/{+path}","compare_url":"https://api.github.com/repos/internetee/registry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/internetee/registry/merges","archive_url":"https://api.github.com/repos/internetee/registry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/internetee/registry/downloads","issues_url":"https://api.github.com/repos/internetee/registry/issues{/number}","pulls_url":"https://api.github.com/repos/internetee/registry/pulls{/number}","milestones_url":"https://api.github.com/repos/internetee/registry/milestones{/number}","notifications_url":"https://api.github.com/repos/internetee/registry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/internetee/registry/labels{/name}","releases_url":"https://api.github.com/repos/internetee/registry/releases{/id}","deployments_url":"https://api.github.com/repos/internetee/registry/deployments","created_at":"2014-05-29T12:13:02Z","updated_at":"2018-10-17T13:24:28Z","pushed_at":"2018-10-18T09:38:56Z","git_url":"git://github.com/internetee/registry.git","ssh_url":"git@github.com:internetee/registry.git","clone_url":"https://github.com/internetee/registry.git","svn_url":"https://github.com/internetee/registry","homepage":"","size":55358,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":220,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":220,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/internetee/registry/pulls/1013"},"html":{"href":"https://github.com/internetee/registry/pull/1013"},"issue":{"href":"https://api.github.com/repos/internetee/registry/issues/1013"},"comments":{"href":"https://api.github.com/repos/internetee/registry/issues/1013/comments"},"review_comments":{"href":"https://api.github.com/repos/internetee/registry/pulls/1013/comments"},"review_comment":{"href":"https://api.github.com/repos/internetee/registry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/internetee/registry/pulls/1013/commits"},"statuses":{"href":"https://api.github.com/repos/internetee/registry/statuses/9ea1cf559945e315cd64a291227774bfee351009"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"maciej-szlosarczyk"}}