{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/19523","labels_url":"https://api.github.com/repos/rails/rails/issues/19523/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/19523/comments","events_url":"https://api.github.com/repos/rails/rails/issues/19523/events","html_url":"https://github.com/rails/rails/pull/19523","id":64441498,"number":19523,"title":"rename `widgets` table to `new_widgets`","user":{"login":"kuldeepaggarwal","id":1930730,"avatar_url":"https://avatars.githubusercontent.com/u/1930730?v=3","gravatar_id":"","url":"https://api.github.com/users/kuldeepaggarwal","html_url":"https://github.com/kuldeepaggarwal","followers_url":"https://api.github.com/users/kuldeepaggarwal/followers","following_url":"https://api.github.com/users/kuldeepaggarwal/following{/other_user}","gists_url":"https://api.github.com/users/kuldeepaggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/kuldeepaggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuldeepaggarwal/subscriptions","organizations_url":"https://api.github.com/users/kuldeepaggarwal/orgs","repos_url":"https://api.github.com/users/kuldeepaggarwal/repos","events_url":"https://api.github.com/users/kuldeepaggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/kuldeepaggarwal/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":9,"created_at":"2015-03-26T04:53:32Z","updated_at":"2015-03-30T07:04:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/19523","html_url":"https://github.com/rails/rails/pull/19523","diff_url":"https://github.com/rails/rails/pull/19523.diff","patch_url":"https://github.com/rails/rails/pull/19523.patch"},"body":"`widgets` table is being created in [primary_keys_test.rb](https://github.com/rails/rails/blob/master/activerecord/test/cases/primary_keys_test.rb#L256-L258) for PostgreSQLAdapter, MysqlAdapter, Mysql2Adapter only and it makes test to fail for these adapters irrespective of how many times I execute the test suite.\r\n\r\nBefore:\r\n  `bundle exec rake mysql2:test`\r\n\r\n```\r\nFinished in 127.287669s, 35.5258 runs/s, 97.8885 assertions/s.\r\n\r\n  1) Error:\r\nPersistenceTest::SaveTest#test_save_touch_false:\r\nActiveModel::UnknownAttributeError: unknown attribute 'name' for #<Class:0x0000000a7d6ef0>.\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/attribute_assignment.rb:36:in `rescue in _assign_attribute'\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/attribute_assignment.rb:34:in `_assign_attribute'\r\n    /home/kd/projects/kd-rails/activemodel/lib/active_model/attribute_assignment.rb:40:in `block in _assign_attributes'\r\n    /home/kd/projects/kd-rails/activemodel/lib/active_model/attribute_assignment.rb:39:in `each'\r\n    /home/kd/projects/kd-rails/activemodel/lib/active_model/attribute_assignment.rb:39:in `_assign_attributes'\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/attribute_assignment.rb:26:in `_assign_attributes'\r\n    /home/kd/projects/kd-rails/activemodel/lib/active_model/attribute_assignment.rb:33:in `assign_attributes'\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/core.rb:293:in `initialize'\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/inheritance.rb:61:in `new'\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/inheritance.rb:61:in `new'\r\n    /home/kd/projects/kd-rails/activerecord/lib/active_record/persistence.rb:50:in `create!'\r\n    /home/kd/projects/kd-rails/activerecord/test/cases/persistence_test.rb:913:in `test_save_touch_false'\r\n\r\n4522 runs, 12460 assertions, 0 failures, 1 errors, 4 skips\r\n```\r\n\r\nAfter:\r\n  `bundle exec rake mysql2:test`\r\n\r\n```\r\n   Finished in 135.785086s, 33.3026 runs/s, 91.7774 assertions/s.\r\n\r\n   4522 runs, 12462 assertions, 0 failures, 0 errors, 4 skips\r\n```\r\n\r\n\r\n\r\n\r\nP.S. I don't know how Travis is so lucky every time."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/87573246","html_url":"https://github.com/rails/rails/pull/19523#issuecomment-87573246","issue_url":"https://api.github.com/repos/rails/rails/issues/19523","id":87573246,"user":{"login":"kuldeepaggarwal","id":1930730,"avatar_url":"https://avatars.githubusercontent.com/u/1930730?v=3","gravatar_id":"","url":"https://api.github.com/users/kuldeepaggarwal","html_url":"https://github.com/kuldeepaggarwal","followers_url":"https://api.github.com/users/kuldeepaggarwal/followers","following_url":"https://api.github.com/users/kuldeepaggarwal/following{/other_user}","gists_url":"https://api.github.com/users/kuldeepaggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/kuldeepaggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuldeepaggarwal/subscriptions","organizations_url":"https://api.github.com/users/kuldeepaggarwal/orgs","repos_url":"https://api.github.com/users/kuldeepaggarwal/repos","events_url":"https://api.github.com/users/kuldeepaggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/kuldeepaggarwal/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T07:04:41Z","updated_at":"2015-03-30T07:04:41Z","body":"Good point :+1: . Thanks for pointing it out."}}