{"action":"created","issue":{"url":"https://api.github.com/repos/aasm/aasm/issues/306","labels_url":"https://api.github.com/repos/aasm/aasm/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/aasm/aasm/issues/306/comments","events_url":"https://api.github.com/repos/aasm/aasm/issues/306/events","html_url":"https://github.com/aasm/aasm/issues/306","id":125750880,"number":306,"title":"How would this work with a json column using postgres?","user":{"login":"mmahalwy","id":3749095,"avatar_url":"https://avatars.githubusercontent.com/u/3749095?v=3","gravatar_id":"","url":"https://api.github.com/users/mmahalwy","html_url":"https://github.com/mmahalwy","followers_url":"https://api.github.com/users/mmahalwy/followers","following_url":"https://api.github.com/users/mmahalwy/following{/other_user}","gists_url":"https://api.github.com/users/mmahalwy/gists{/gist_id}","starred_url":"https://api.github.com/users/mmahalwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmahalwy/subscriptions","organizations_url":"https://api.github.com/users/mmahalwy/orgs","repos_url":"https://api.github.com/users/mmahalwy/repos","events_url":"https://api.github.com/users/mmahalwy/events{/privacy}","received_events_url":"https://api.github.com/users/mmahalwy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alto","id":3209,"avatar_url":"https://avatars.githubusercontent.com/u/3209?v=3","gravatar_id":"","url":"https://api.github.com/users/alto","html_url":"https://github.com/alto","followers_url":"https://api.github.com/users/alto/followers","following_url":"https://api.github.com/users/alto/following{/other_user}","gists_url":"https://api.github.com/users/alto/gists{/gist_id}","starred_url":"https://api.github.com/users/alto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alto/subscriptions","organizations_url":"https://api.github.com/users/alto/orgs","repos_url":"https://api.github.com/users/alto/repos","events_url":"https://api.github.com/users/alto/events{/privacy}","received_events_url":"https://api.github.com/users/alto/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-09T10:17:28Z","updated_at":"2016-01-11T09:43:16Z","closed_at":null,"body":"Instead of having individual fields on my model, I want to create a json column named `state` that may or may not contain certain keys.\r\n\r\nHow would this work (and perhaps if there is a good example) with aasm? "},"comment":{"url":"https://api.github.com/repos/aasm/aasm/issues/comments/170489231","html_url":"https://github.com/aasm/aasm/issues/306#issuecomment-170489231","issue_url":"https://api.github.com/repos/aasm/aasm/issues/306","id":170489231,"user":{"login":"alto","id":3209,"avatar_url":"https://avatars.githubusercontent.com/u/3209?v=3","gravatar_id":"","url":"https://api.github.com/users/alto","html_url":"https://github.com/alto","followers_url":"https://api.github.com/users/alto/followers","following_url":"https://api.github.com/users/alto/following{/other_user}","gists_url":"https://api.github.com/users/alto/gists{/gist_id}","starred_url":"https://api.github.com/users/alto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alto/subscriptions","organizations_url":"https://api.github.com/users/alto/orgs","repos_url":"https://api.github.com/users/alto/repos","events_url":"https://api.github.com/users/alto/events{/privacy}","received_events_url":"https://api.github.com/users/alto/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T09:43:16Z","updated_at":"2016-01-11T09:43:16Z","body":"@mmahalwy I'm not sure I understand what you are trying to achieve. Normally you would have a `state` column of type `string`, which can take any of your defined states (as strings). Do you want to store it as hash instead?"}}