{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/6","id":88027220,"html_url":"https://github.com/sinsoku/pretty_validation/pull/6","diff_url":"https://github.com/sinsoku/pretty_validation/pull/6.diff","patch_url":"https://github.com/sinsoku/pretty_validation/pull/6.patch","issue_url":"https://api.github.com/repos/sinsoku/pretty_validation/issues/6","number":6,"state":"closed","locked":false,"title":"Add ignored_columns to skip generating validation","user":{"login":"akm","id":18912,"avatar_url":"https://avatars2.githubusercontent.com/u/18912?v=4","gravatar_id":"","url":"https://api.github.com/users/akm","html_url":"https://github.com/akm","followers_url":"https://api.github.com/users/akm/followers","following_url":"https://api.github.com/users/akm/following{/other_user}","gists_url":"https://api.github.com/users/akm/gists{/gist_id}","starred_url":"https://api.github.com/users/akm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akm/subscriptions","organizations_url":"https://api.github.com/users/akm/orgs","repos_url":"https://api.github.com/users/akm/repos","events_url":"https://api.github.com/users/akm/events{/privacy}","received_events_url":"https://api.github.com/users/akm/received_events","type":"User","site_admin":false},"body":"Skip generating validation with `ignored_columns` if customized validations are needed.\n\nYou can set it like this in `config/initializers/pretty_validation.rb`:\n\n``` ruby\nPrettyValidation.configure do |config|\n  config.ignored_columns = {\n    table1: [:foo],\n    table2: [:bar, :baz],\n  }.map{|t,cols| cols.map{|c| \"#{t}.#{c}\"} }.flatten\nend\n```\n## Background\n\nWhen working with [enumerize](https://github.com/brainspec/enumerize), numericality validations for numeric fields reject Symbol values which are allowed by enumerize.\nSo I need to skip generating validation for some columns.\n","created_at":"2016-10-05T07:19:12Z","updated_at":"2018-02-26T00:51:36Z","closed_at":"2018-02-26T00:51:36Z","merged_at":null,"merge_commit_sha":"314b02d972391f604a81fdc5ebb39b76bada9734","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/6/commits","review_comments_url":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/6/comments","review_comment_url":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sinsoku/pretty_validation/issues/6/comments","statuses_url":"https://api.github.com/repos/sinsoku/pretty_validation/statuses/3f5d4322acc4634147b4838818b223e5ea45090a","head":{"label":"akm:features/ignored_columns","ref":"features/ignored_columns","sha":"3f5d4322acc4634147b4838818b223e5ea45090a","user":{"login":"akm","id":18912,"avatar_url":"https://avatars2.githubusercontent.com/u/18912?v=4","gravatar_id":"","url":"https://api.github.com/users/akm","html_url":"https://github.com/akm","followers_url":"https://api.github.com/users/akm/followers","following_url":"https://api.github.com/users/akm/following{/other_user}","gists_url":"https://api.github.com/users/akm/gists{/gist_id}","starred_url":"https://api.github.com/users/akm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akm/subscriptions","organizations_url":"https://api.github.com/users/akm/orgs","repos_url":"https://api.github.com/users/akm/repos","events_url":"https://api.github.com/users/akm/events{/privacy}","received_events_url":"https://api.github.com/users/akm/received_events","type":"User","site_admin":false},"repo":{"id":57174570,"name":"pretty_validation","full_name":"akm/pretty_validation","owner":{"login":"akm","id":18912,"avatar_url":"https://avatars2.githubusercontent.com/u/18912?v=4","gravatar_id":"","url":"https://api.github.com/users/akm","html_url":"https://github.com/akm","followers_url":"https://api.github.com/users/akm/followers","following_url":"https://api.github.com/users/akm/following{/other_user}","gists_url":"https://api.github.com/users/akm/gists{/gist_id}","starred_url":"https://api.github.com/users/akm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akm/subscriptions","organizations_url":"https://api.github.com/users/akm/orgs","repos_url":"https://api.github.com/users/akm/repos","events_url":"https://api.github.com/users/akm/events{/privacy}","received_events_url":"https://api.github.com/users/akm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akm/pretty_validation","description":"PrettyValidation generate validation modules from database schema","fork":true,"url":"https://api.github.com/repos/akm/pretty_validation","forks_url":"https://api.github.com/repos/akm/pretty_validation/forks","keys_url":"https://api.github.com/repos/akm/pretty_validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akm/pretty_validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akm/pretty_validation/teams","hooks_url":"https://api.github.com/repos/akm/pretty_validation/hooks","issue_events_url":"https://api.github.com/repos/akm/pretty_validation/issues/events{/number}","events_url":"https://api.github.com/repos/akm/pretty_validation/events","assignees_url":"https://api.github.com/repos/akm/pretty_validation/assignees{/user}","branches_url":"https://api.github.com/repos/akm/pretty_validation/branches{/branch}","tags_url":"https://api.github.com/repos/akm/pretty_validation/tags","blobs_url":"https://api.github.com/repos/akm/pretty_validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akm/pretty_validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akm/pretty_validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/akm/pretty_validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akm/pretty_validation/statuses/{sha}","languages_url":"https://api.github.com/repos/akm/pretty_validation/languages","stargazers_url":"https://api.github.com/repos/akm/pretty_validation/stargazers","contributors_url":"https://api.github.com/repos/akm/pretty_validation/contributors","subscribers_url":"https://api.github.com/repos/akm/pretty_validation/subscribers","subscription_url":"https://api.github.com/repos/akm/pretty_validation/subscription","commits_url":"https://api.github.com/repos/akm/pretty_validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/akm/pretty_validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/akm/pretty_validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/akm/pretty_validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/akm/pretty_validation/contents/{+path}","compare_url":"https://api.github.com/repos/akm/pretty_validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akm/pretty_validation/merges","archive_url":"https://api.github.com/repos/akm/pretty_validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akm/pretty_validation/downloads","issues_url":"https://api.github.com/repos/akm/pretty_validation/issues{/number}","pulls_url":"https://api.github.com/repos/akm/pretty_validation/pulls{/number}","milestones_url":"https://api.github.com/repos/akm/pretty_validation/milestones{/number}","notifications_url":"https://api.github.com/repos/akm/pretty_validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akm/pretty_validation/labels{/name}","releases_url":"https://api.github.com/repos/akm/pretty_validation/releases{/id}","deployments_url":"https://api.github.com/repos/akm/pretty_validation/deployments","created_at":"2016-04-27T01:45:08Z","updated_at":"2016-04-27T01:45:09Z","pushed_at":"2017-09-20T04:29:44Z","git_url":"git://github.com/akm/pretty_validation.git","ssh_url":"git@github.com:akm/pretty_validation.git","clone_url":"https://github.com/akm/pretty_validation.git","svn_url":"https://github.com/akm/pretty_validation","homepage":"","size":44,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sinsoku:master","ref":"master","sha":"18e2b62d69900c6fa938967e4785c0f871517117","user":{"login":"sinsoku","id":248174,"avatar_url":"https://avatars3.githubusercontent.com/u/248174?v=4","gravatar_id":"","url":"https://api.github.com/users/sinsoku","html_url":"https://github.com/sinsoku","followers_url":"https://api.github.com/users/sinsoku/followers","following_url":"https://api.github.com/users/sinsoku/following{/other_user}","gists_url":"https://api.github.com/users/sinsoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sinsoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinsoku/subscriptions","organizations_url":"https://api.github.com/users/sinsoku/orgs","repos_url":"https://api.github.com/users/sinsoku/repos","events_url":"https://api.github.com/users/sinsoku/events{/privacy}","received_events_url":"https://api.github.com/users/sinsoku/received_events","type":"User","site_admin":false},"repo":{"id":45465694,"name":"pretty_validation","full_name":"sinsoku/pretty_validation","owner":{"login":"sinsoku","id":248174,"avatar_url":"https://avatars3.githubusercontent.com/u/248174?v=4","gravatar_id":"","url":"https://api.github.com/users/sinsoku","html_url":"https://github.com/sinsoku","followers_url":"https://api.github.com/users/sinsoku/followers","following_url":"https://api.github.com/users/sinsoku/following{/other_user}","gists_url":"https://api.github.com/users/sinsoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sinsoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinsoku/subscriptions","organizations_url":"https://api.github.com/users/sinsoku/orgs","repos_url":"https://api.github.com/users/sinsoku/repos","events_url":"https://api.github.com/users/sinsoku/events{/privacy}","received_events_url":"https://api.github.com/users/sinsoku/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sinsoku/pretty_validation","description":"PrettyValidation generate validation modules from database schema","fork":false,"url":"https://api.github.com/repos/sinsoku/pretty_validation","forks_url":"https://api.github.com/repos/sinsoku/pretty_validation/forks","keys_url":"https://api.github.com/repos/sinsoku/pretty_validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sinsoku/pretty_validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sinsoku/pretty_validation/teams","hooks_url":"https://api.github.com/repos/sinsoku/pretty_validation/hooks","issue_events_url":"https://api.github.com/repos/sinsoku/pretty_validation/issues/events{/number}","events_url":"https://api.github.com/repos/sinsoku/pretty_validation/events","assignees_url":"https://api.github.com/repos/sinsoku/pretty_validation/assignees{/user}","branches_url":"https://api.github.com/repos/sinsoku/pretty_validation/branches{/branch}","tags_url":"https://api.github.com/repos/sinsoku/pretty_validation/tags","blobs_url":"https://api.github.com/repos/sinsoku/pretty_validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sinsoku/pretty_validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sinsoku/pretty_validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/sinsoku/pretty_validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sinsoku/pretty_validation/statuses/{sha}","languages_url":"https://api.github.com/repos/sinsoku/pretty_validation/languages","stargazers_url":"https://api.github.com/repos/sinsoku/pretty_validation/stargazers","contributors_url":"https://api.github.com/repos/sinsoku/pretty_validation/contributors","subscribers_url":"https://api.github.com/repos/sinsoku/pretty_validation/subscribers","subscription_url":"https://api.github.com/repos/sinsoku/pretty_validation/subscription","commits_url":"https://api.github.com/repos/sinsoku/pretty_validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/sinsoku/pretty_validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/sinsoku/pretty_validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/sinsoku/pretty_validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/sinsoku/pretty_validation/contents/{+path}","compare_url":"https://api.github.com/repos/sinsoku/pretty_validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sinsoku/pretty_validation/merges","archive_url":"https://api.github.com/repos/sinsoku/pretty_validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sinsoku/pretty_validation/downloads","issues_url":"https://api.github.com/repos/sinsoku/pretty_validation/issues{/number}","pulls_url":"https://api.github.com/repos/sinsoku/pretty_validation/pulls{/number}","milestones_url":"https://api.github.com/repos/sinsoku/pretty_validation/milestones{/number}","notifications_url":"https://api.github.com/repos/sinsoku/pretty_validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sinsoku/pretty_validation/labels{/name}","releases_url":"https://api.github.com/repos/sinsoku/pretty_validation/releases{/id}","deployments_url":"https://api.github.com/repos/sinsoku/pretty_validation/deployments","created_at":"2015-11-03T12:42:10Z","updated_at":"2017-11-24T05:47:43Z","pushed_at":"2016-10-05T07:19:12Z","git_url":"git://github.com/sinsoku/pretty_validation.git","ssh_url":"git@github.com:sinsoku/pretty_validation.git","clone_url":"https://github.com/sinsoku/pretty_validation.git","svn_url":"https://github.com/sinsoku/pretty_validation","homepage":"","size":41,"stargazers_count":12,"watchers_count":12,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/6"},"html":{"href":"https://github.com/sinsoku/pretty_validation/pull/6"},"issue":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/issues/6"},"comments":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/sinsoku/pretty_validation/statuses/3f5d4322acc4634147b4838818b223e5ea45090a"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":7,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"akm"}}