{"action":"created","issue":{"url":"https://api.github.com/repos/infinum/enumerations/issues/14","repository_url":"https://api.github.com/repos/infinum/enumerations","labels_url":"https://api.github.com/repos/infinum/enumerations/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/infinum/enumerations/issues/14/comments","events_url":"https://api.github.com/repos/infinum/enumerations/issues/14/events","html_url":"https://github.com/infinum/enumerations/issues/14","id":173941998,"number":14,"title":"Add option to store foreign_key as string","user":{"login":"d4be4st","id":973872,"avatar_url":"https://avatars.githubusercontent.com/u/973872?v=3","gravatar_id":"","url":"https://api.github.com/users/d4be4st","html_url":"https://github.com/d4be4st","followers_url":"https://api.github.com/users/d4be4st/followers","following_url":"https://api.github.com/users/d4be4st/following{/other_user}","gists_url":"https://api.github.com/users/d4be4st/gists{/gist_id}","starred_url":"https://api.github.com/users/d4be4st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4be4st/subscriptions","organizations_url":"https://api.github.com/users/d4be4st/orgs","repos_url":"https://api.github.com/users/d4be4st/repos","events_url":"https://api.github.com/users/d4be4st/events{/privacy}","received_events_url":"https://api.github.com/users/d4be4st/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"petarcurkovic","id":10612221,"avatar_url":"https://avatars.githubusercontent.com/u/10612221?v=3","gravatar_id":"","url":"https://api.github.com/users/petarcurkovic","html_url":"https://github.com/petarcurkovic","followers_url":"https://api.github.com/users/petarcurkovic/followers","following_url":"https://api.github.com/users/petarcurkovic/following{/other_user}","gists_url":"https://api.github.com/users/petarcurkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/petarcurkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petarcurkovic/subscriptions","organizations_url":"https://api.github.com/users/petarcurkovic/orgs","repos_url":"https://api.github.com/users/petarcurkovic/repos","events_url":"https://api.github.com/users/petarcurkovic/events{/privacy}","received_events_url":"https://api.github.com/users/petarcurkovic/received_events","type":"User","site_admin":false},"assignees":[{"login":"petarcurkovic","id":10612221,"avatar_url":"https://avatars.githubusercontent.com/u/10612221?v=3","gravatar_id":"","url":"https://api.github.com/users/petarcurkovic","html_url":"https://github.com/petarcurkovic","followers_url":"https://api.github.com/users/petarcurkovic/followers","following_url":"https://api.github.com/users/petarcurkovic/following{/other_user}","gists_url":"https://api.github.com/users/petarcurkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/petarcurkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petarcurkovic/subscriptions","organizations_url":"https://api.github.com/users/petarcurkovic/orgs","repos_url":"https://api.github.com/users/petarcurkovic/repos","events_url":"https://api.github.com/users/petarcurkovic/events{/privacy}","received_events_url":"https://api.github.com/users/petarcurkovic/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-08-30T06:46:53Z","updated_at":"2016-08-31T08:17:17Z","closed_at":null,"body":"We did some benchmarks and retrieving by string is 200ms slower than integers on a 10 000 000 records big table :) \r\n\r\ninsignificant speed improvements over readability and convenience."},"comment":{"url":"https://api.github.com/repos/infinum/enumerations/issues/comments/243692181","html_url":"https://github.com/infinum/enumerations/issues/14#issuecomment-243692181","issue_url":"https://api.github.com/repos/infinum/enumerations/issues/14","id":243692181,"user":{"login":"d4be4st","id":973872,"avatar_url":"https://avatars.githubusercontent.com/u/973872?v=3","gravatar_id":"","url":"https://api.github.com/users/d4be4st","html_url":"https://github.com/d4be4st","followers_url":"https://api.github.com/users/d4be4st/followers","following_url":"https://api.github.com/users/d4be4st/following{/other_user}","gists_url":"https://api.github.com/users/d4be4st/gists{/gist_id}","starred_url":"https://api.github.com/users/d4be4st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4be4st/subscriptions","organizations_url":"https://api.github.com/users/d4be4st/orgs","repos_url":"https://api.github.com/users/d4be4st/repos","events_url":"https://api.github.com/users/d4be4st/events{/privacy}","received_events_url":"https://api.github.com/users/d4be4st/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T08:17:17Z","updated_at":"2016-08-31T08:17:17Z","body":"http://edgeguides.rubyonrails.org/active_record_postgresql.html#enumerated-types\r\n\r\nBeside rails not having native support for enums, enums are between strings and integers.\r\n\r\nBut this has nothing to do with enumerations, because if you want to use enums types instead of strings you only need to change  your database, everyting else would work because enum types act just like strings."}}
{"actor":{"display_login":"d4be4st"}}