{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/f046ac6b545879813eb967a0455aa630?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f046ac6b545879813eb967a0455aa630","url":"https://api.github.com/users/rmehner","login":"rmehner","id":82050},"milestone":{"state":"open","open_issues":12,"url":"https://api.github.com/repos/rails/rails/milestones/8","due_on":null,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/d04d064616ae7fd752fdcb8daa5abdd6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d04d064616ae7fd752fdcb8daa5abdd6","url":"https://api.github.com/users/spastorino","login":"spastorino","id":52642},"number":8,"title":"3.1.2","description":"","closed_issues":16,"created_at":"2011-09-15T00:46:56Z"},"assignee":null,"labels":[],"updated_at":"2011-11-04T16:36:51Z","comments":8,"closed_at":null,"url":"https://api.github.com/repos/rails/rails/issues/3440","body":"Hi there,\r\n\r\nusing Rails 3.1.1 (on 1.9.2), when I have the following migration\r\n\r\n```ruby\r\nclass CreateCodes < ActiveRecord::Migration\r\n  def change\r\n    create_table :codes, id: false do |t|\r\n      t.string :key, null: false\r\n    end\r\n\r\n    add_index :codes, :key, unique: true\r\n  end\r\nend\r\n```\r\n\r\nI would expect the following schema\r\n\r\n```ruby\r\ncreate_table \"codes\", :id => false, :force => true do |t|\r\n  t.string \"key\", :null => false\r\nend\r\n\r\nadd_index \"codes\", [\"key\"], :name => \"index_codes_on_key\", :unique => true\r\n```\r\n\r\nbut what I really get is:\r\n\r\n```ruby\r\ncreate_table \"codes\", :primary_key => \"key\", :force => true do |t|\r\nend\r\n\r\nadd_index \"codes\", [\"key\"], :name => \"index_codes_on_key\", :unique => true\r\n```\r\n\r\nNote that this does not happen using sqlite3, but when using mysql2 (0.3.7) and mysql (2.8.1)\r\n\r\nI really don't know if this is a Rails bug or more on the mysql driver side so I'm happy to take some pointers.\r\n\r\nIf there is any information missing please let me know\r\n\r\nThank you in advance for looking into it,\r\n- Robin","html_url":"https://github.com/rails/rails/issues/3440","number":3440,"title":"Generated schema ignores id: false on mysql2","id":2057764,"created_at":"2011-10-26T15:20:35Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/1f0b221851379759360d7130dabdfa53?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1f0b221851379759360d7130dabdfa53","url":"https://api.github.com/users/kennyj","login":"kennyj","id":13426},"updated_at":"2011-11-04T16:36:51Z","url":"https://api.github.com/repos/rails/rails/issues/comments/2633138","body":"/cc @tenderlove @jonleighton\r\n\r\nI confirm it again, but it's work fine (for me).\r\n  edge rails / ruby 1.9.2-p180 / mysql 5.0.77\r\n\r\nSomeone, please test the above steps?","id":2633138,"created_at":"2011-11-04T16:36:51Z"}}