{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/17696","labels_url":"https://api.github.com/repos/rails/rails/issues/17696/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/17696/comments","events_url":"https://api.github.com/repos/rails/rails/issues/17696/events","html_url":"https://github.com/rails/rails/pull/17696","id":49640594,"number":17696,"title":"Add unsigned option support for MySQL numeric data types","user":{"login":"kamipo","id":12642,"avatar_url":"https://avatars.githubusercontent.com/u/12642?v=3","gravatar_id":"","url":"https://api.github.com/users/kamipo","html_url":"https://github.com/kamipo","followers_url":"https://api.github.com/users/kamipo/followers","following_url":"https://api.github.com/users/kamipo/following{/other_user}","gists_url":"https://api.github.com/users/kamipo/gists{/gist_id}","starred_url":"https://api.github.com/users/kamipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamipo/subscriptions","organizations_url":"https://api.github.com/users/kamipo/orgs","repos_url":"https://api.github.com/users/kamipo/repos","events_url":"https://api.github.com/users/kamipo/events{/privacy}","received_events_url":"https://api.github.com/users/kamipo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/activerecord","name":"activerecord","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-21T01:18:27Z","updated_at":"2015-06-03T17:50:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/17696","html_url":"https://github.com/rails/rails/pull/17696","diff_url":"https://github.com/rails/rails/pull/17696.diff","patch_url":"https://github.com/rails/rails/pull/17696.patch"},"body":"Example:\r\n\r\n```ruby\r\ncreate_table :foos, id: :primary_key, unsigned: true do |t|\r\n  t.integer :unsigned_integer, unsigned: true\r\n  t.bigint  :unsigned_bigint,  unsigned: true\r\n  t.float   :unsigned_float,   unsigned: true\r\n  t.decimal :unsigned_decimal, unsigned: true, precision: 10, scale: 2\r\nend\r\n```\r\n\r\nIn the case of unsigned_integer, it can be used as the type:\r\n\r\n```ruby\r\ncreate_table :foos do |t|\r\n  t.unsigned_integer :unsigned_number\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/108545222","html_url":"https://github.com/rails/rails/pull/17696#issuecomment-108545222","issue_url":"https://api.github.com/repos/rails/rails/issues/17696","id":108545222,"user":{"login":"zzak","id":277819,"avatar_url":"https://avatars.githubusercontent.com/u/277819?v=3","gravatar_id":"","url":"https://api.github.com/users/zzak","html_url":"https://github.com/zzak","followers_url":"https://api.github.com/users/zzak/followers","following_url":"https://api.github.com/users/zzak/following{/other_user}","gists_url":"https://api.github.com/users/zzak/gists{/gist_id}","starred_url":"https://api.github.com/users/zzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzak/subscriptions","organizations_url":"https://api.github.com/users/zzak/orgs","repos_url":"https://api.github.com/users/zzak/repos","events_url":"https://api.github.com/users/zzak/events{/privacy}","received_events_url":"https://api.github.com/users/zzak/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T17:50:30Z","updated_at":"2015-06-03T17:50:30Z","body":"I discussed with @rafaelfranca and we would prefer types over option, including primary key.\r\nSimilar to how types are handled in the postgres adapter.\r\n\r\n/cc @sgrif "}}