{"action":"created","comment":{"url":"https://api.github.com/repos/alfagen/aml-app/pulls/comments/226856340","pull_request_review_id":166778680,"id":226856340,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjg1NjM0MA==","diff_hunk":"@@ -0,0 +1,8 @@\n+# This migration comes from aml (originally 20181019065150)\n+class AddOperatorLocale < ActiveRecord::Migration[5.2]\n+  def change\n+    add_column :aml_operators, :locale, :string, default: 'ru'\n+    execute \"update aml_operators set locale='ru'\"\n+    change_column_null :aml_operators, :locale, false","path":"db/migrate/20181019073247_add_operator_locale.aml.rb","position":6,"original_position":6,"commit_id":"b7abbd81b53abaed7b44d71153fd4f2ba8ebfe54","original_commit_id":"b7abbd81b53abaed7b44d71153fd4f2ba8ebfe54","user":{"login":"dapi","id":31139,"node_id":"MDQ6VXNlcjMxMTM5","avatar_url":"https://avatars2.githubusercontent.com/u/31139?v=4","gravatar_id":"","url":"https://api.github.com/users/dapi","html_url":"https://github.com/dapi","followers_url":"https://api.github.com/users/dapi/followers","following_url":"https://api.github.com/users/dapi/following{/other_user}","gists_url":"https://api.github.com/users/dapi/gists{/gist_id}","starred_url":"https://api.github.com/users/dapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dapi/subscriptions","organizations_url":"https://api.github.com/users/dapi/orgs","repos_url":"https://api.github.com/users/dapi/repos","events_url":"https://api.github.com/users/dapi/events{/privacy}","received_events_url":"https://api.github.com/users/dapi/received_events","type":"User","site_admin":false},"body":"Чтобы убедиться что ты понял как работают default-а. Скажи когда надо устанавливать null: false отдельно, а когда можно сразу при добавлении колонки?","created_at":"2018-10-21T10:11:38Z","updated_at":"2018-10-21T10:11:38Z","html_url":"https://github.com/alfagen/aml-app/pull/142#discussion_r226856340","pull_request_url":"https://api.github.com/repos/alfagen/aml-app/pulls/142","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/alfagen/aml-app/pulls/comments/226856340"},"html":{"href":"https://github.com/alfagen/aml-app/pull/142#discussion_r226856340"},"pull_request":{"href":"https://api.github.com/repos/alfagen/aml-app/pulls/142"}},"in_reply_to_id":226856278},"pull_request":{"url":"https://api.github.com/repos/alfagen/aml-app/pulls/142","id":224530092,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTMwMDky","html_url":"https://github.com/alfagen/aml-app/pull/142","diff_url":"https://github.com/alfagen/aml-app/pull/142.diff","patch_url":"https://github.com/alfagen/aml-app/pull/142.patch","issue_url":"https://api.github.com/repos/alfagen/aml-app/issues/142","number":142,"state":"open","locked":false,"title":"Смена текущей локали","user":{"login":"ValentinAndreev","id":19556071,"node_id":"MDQ6VXNlcjE5NTU2MDcx","avatar_url":"https://avatars2.githubusercontent.com/u/19556071?v=4","gravatar_id":"","url":"https://api.github.com/users/ValentinAndreev","html_url":"https://github.com/ValentinAndreev","followers_url":"https://api.github.com/users/ValentinAndreev/followers","following_url":"https://api.github.com/users/ValentinAndreev/following{/other_user}","gists_url":"https://api.github.com/users/ValentinAndreev/gists{/gist_id}","starred_url":"https://api.github.com/users/ValentinAndreev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValentinAndreev/subscriptions","organizations_url":"https://api.github.com/users/ValentinAndreev/orgs","repos_url":"https://api.github.com/users/ValentinAndreev/repos","events_url":"https://api.github.com/users/ValentinAndreev/events{/privacy}","received_events_url":"https://api.github.com/users/ValentinAndreev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-21T09:55:56Z","updated_at":"2018-10-21T10:11:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01377acc0917f57d28f36db364a46abd27382bbf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alfagen/aml-app/pulls/142/commits","review_comments_url":"https://api.github.com/repos/alfagen/aml-app/pulls/142/comments","review_comment_url":"https://api.github.com/repos/alfagen/aml-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alfagen/aml-app/issues/142/comments","statuses_url":"https://api.github.com/repos/alfagen/aml-app/statuses/b7abbd81b53abaed7b44d71153fd4f2ba8ebfe54","head":{"label":"alfagen:operator-locale","ref":"operator-locale","sha":"b7abbd81b53abaed7b44d71153fd4f2ba8ebfe54","user":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"repo":{"id":143115246,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMxMTUyNDY=","name":"aml-app","full_name":"alfagen/aml-app","private":false,"owner":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alfagen/aml-app","description":"AML (Anti-money laundering) processing application","fork":false,"url":"https://api.github.com/repos/alfagen/aml-app","forks_url":"https://api.github.com/repos/alfagen/aml-app/forks","keys_url":"https://api.github.com/repos/alfagen/aml-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfagen/aml-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfagen/aml-app/teams","hooks_url":"https://api.github.com/repos/alfagen/aml-app/hooks","issue_events_url":"https://api.github.com/repos/alfagen/aml-app/issues/events{/number}","events_url":"https://api.github.com/repos/alfagen/aml-app/events","assignees_url":"https://api.github.com/repos/alfagen/aml-app/assignees{/user}","branches_url":"https://api.github.com/repos/alfagen/aml-app/branches{/branch}","tags_url":"https://api.github.com/repos/alfagen/aml-app/tags","blobs_url":"https://api.github.com/repos/alfagen/aml-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfagen/aml-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfagen/aml-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfagen/aml-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfagen/aml-app/statuses/{sha}","languages_url":"https://api.github.com/repos/alfagen/aml-app/languages","stargazers_url":"https://api.github.com/repos/alfagen/aml-app/stargazers","contributors_url":"https://api.github.com/repos/alfagen/aml-app/contributors","subscribers_url":"https://api.github.com/repos/alfagen/aml-app/subscribers","subscription_url":"https://api.github.com/repos/alfagen/aml-app/subscription","commits_url":"https://api.github.com/repos/alfagen/aml-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfagen/aml-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfagen/aml-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfagen/aml-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfagen/aml-app/contents/{+path}","compare_url":"https://api.github.com/repos/alfagen/aml-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfagen/aml-app/merges","archive_url":"https://api.github.com/repos/alfagen/aml-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfagen/aml-app/downloads","issues_url":"https://api.github.com/repos/alfagen/aml-app/issues{/number}","pulls_url":"https://api.github.com/repos/alfagen/aml-app/pulls{/number}","milestones_url":"https://api.github.com/repos/alfagen/aml-app/milestones{/number}","notifications_url":"https://api.github.com/repos/alfagen/aml-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfagen/aml-app/labels{/name}","releases_url":"https://api.github.com/repos/alfagen/aml-app/releases{/id}","deployments_url":"https://api.github.com/repos/alfagen/aml-app/deployments","created_at":"2018-08-01T06:46:36Z","updated_at":"2018-10-19T14:24:06Z","pushed_at":"2018-10-21T09:55:57Z","git_url":"git://github.com/alfagen/aml-app.git","ssh_url":"git@github.com:alfagen/aml-app.git","clone_url":"https://github.com/alfagen/aml-app.git","svn_url":"https://github.com/alfagen/aml-app","homepage":"http://aml.stage.bang8.ru/","size":617,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alfagen:master","ref":"master","sha":"0f28b567c945aaa46fdc7a28bdf1873912aa0bbe","user":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"repo":{"id":143115246,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMxMTUyNDY=","name":"aml-app","full_name":"alfagen/aml-app","private":false,"owner":{"login":"alfagen","id":36159568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MTU5NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/36159568?v=4","gravatar_id":"","url":"https://api.github.com/users/alfagen","html_url":"https://github.com/alfagen","followers_url":"https://api.github.com/users/alfagen/followers","following_url":"https://api.github.com/users/alfagen/following{/other_user}","gists_url":"https://api.github.com/users/alfagen/gists{/gist_id}","starred_url":"https://api.github.com/users/alfagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfagen/subscriptions","organizations_url":"https://api.github.com/users/alfagen/orgs","repos_url":"https://api.github.com/users/alfagen/repos","events_url":"https://api.github.com/users/alfagen/events{/privacy}","received_events_url":"https://api.github.com/users/alfagen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alfagen/aml-app","description":"AML (Anti-money laundering) processing application","fork":false,"url":"https://api.github.com/repos/alfagen/aml-app","forks_url":"https://api.github.com/repos/alfagen/aml-app/forks","keys_url":"https://api.github.com/repos/alfagen/aml-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfagen/aml-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfagen/aml-app/teams","hooks_url":"https://api.github.com/repos/alfagen/aml-app/hooks","issue_events_url":"https://api.github.com/repos/alfagen/aml-app/issues/events{/number}","events_url":"https://api.github.com/repos/alfagen/aml-app/events","assignees_url":"https://api.github.com/repos/alfagen/aml-app/assignees{/user}","branches_url":"https://api.github.com/repos/alfagen/aml-app/branches{/branch}","tags_url":"https://api.github.com/repos/alfagen/aml-app/tags","blobs_url":"https://api.github.com/repos/alfagen/aml-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfagen/aml-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfagen/aml-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfagen/aml-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfagen/aml-app/statuses/{sha}","languages_url":"https://api.github.com/repos/alfagen/aml-app/languages","stargazers_url":"https://api.github.com/repos/alfagen/aml-app/stargazers","contributors_url":"https://api.github.com/repos/alfagen/aml-app/contributors","subscribers_url":"https://api.github.com/repos/alfagen/aml-app/subscribers","subscription_url":"https://api.github.com/repos/alfagen/aml-app/subscription","commits_url":"https://api.github.com/repos/alfagen/aml-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfagen/aml-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfagen/aml-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfagen/aml-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfagen/aml-app/contents/{+path}","compare_url":"https://api.github.com/repos/alfagen/aml-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfagen/aml-app/merges","archive_url":"https://api.github.com/repos/alfagen/aml-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfagen/aml-app/downloads","issues_url":"https://api.github.com/repos/alfagen/aml-app/issues{/number}","pulls_url":"https://api.github.com/repos/alfagen/aml-app/pulls{/number}","milestones_url":"https://api.github.com/repos/alfagen/aml-app/milestones{/number}","notifications_url":"https://api.github.com/repos/alfagen/aml-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfagen/aml-app/labels{/name}","releases_url":"https://api.github.com/repos/alfagen/aml-app/releases{/id}","deployments_url":"https://api.github.com/repos/alfagen/aml-app/deployments","created_at":"2018-08-01T06:46:36Z","updated_at":"2018-10-19T14:24:06Z","pushed_at":"2018-10-21T09:55:57Z","git_url":"git://github.com/alfagen/aml-app.git","ssh_url":"git@github.com:alfagen/aml-app.git","clone_url":"https://github.com/alfagen/aml-app.git","svn_url":"https://github.com/alfagen/aml-app","homepage":"http://aml.stage.bang8.ru/","size":617,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alfagen/aml-app/pulls/142"},"html":{"href":"https://github.com/alfagen/aml-app/pull/142"},"issue":{"href":"https://api.github.com/repos/alfagen/aml-app/issues/142"},"comments":{"href":"https://api.github.com/repos/alfagen/aml-app/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/alfagen/aml-app/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/alfagen/aml-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alfagen/aml-app/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/alfagen/aml-app/statuses/b7abbd81b53abaed7b44d71153fd4f2ba8ebfe54"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dapi"}}