{"action":"closed","issue":{"url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6089","repository_url":"https://api.github.com/repos/rubocop-hq/rubocop","labels_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6089/labels{/name}","comments_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6089/comments","events_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6089/events","html_url":"https://github.com/rubocop-hq/rubocop/issues/6089","id":339354785,"node_id":"MDU6SXNzdWUzMzkzNTQ3ODU=","number":6089,"title":"Rubocop 0.58.0 errors on Rails/BulkChangeTable cop","user":{"login":"morgoth","id":10766,"node_id":"MDQ6VXNlcjEwNzY2","avatar_url":"https://avatars2.githubusercontent.com/u/10766?v=4","gravatar_id":"","url":"https://api.github.com/users/morgoth","html_url":"https://github.com/morgoth","followers_url":"https://api.github.com/users/morgoth/followers","following_url":"https://api.github.com/users/morgoth/following{/other_user}","gists_url":"https://api.github.com/users/morgoth/gists{/gist_id}","starred_url":"https://api.github.com/users/morgoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morgoth/subscriptions","organizations_url":"https://api.github.com/users/morgoth/orgs","repos_url":"https://api.github.com/users/morgoth/repos","events_url":"https://api.github.com/users/morgoth/events{/privacy}","received_events_url":"https://api.github.com/users/morgoth/received_events","type":"User","site_admin":false},"labels":[{"id":3608332,"node_id":"MDU6TGFiZWwzNjA4MzMy","url":"https://api.github.com/repos/rubocop-hq/rubocop/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T08:37:16Z","updated_at":"2018-07-10T07:19:21Z","closed_at":"2018-07-10T07:19:21Z","author_association":"NONE","body":"## Actual behavior\r\n\r\nRubocop throws error during inspect on migration file:\r\n```\r\n1 error occurred:\r\nAn error occurred while Rails/BulkChangeTable cop was inspecting /home/wojtek/Projects/path/to/project\r\n```\r\n\r\nContent of the file is:\r\n```ruby\r\nclass AddMeasurementSystemToUsers < ActiveRecord::Migration\r\n  def change\r\n    %w[users deleted_users].each do |table|\r\n      add_column table, :measurement_system, :integer, null: false, default: 1 # default = metric\r\n    end\r\n  end\r\nend\r\n```\r\n\r\n## RuboCop version\r\n\r\n```\r\n$ rubocop -V\r\n0.58.0 (using Parser 2.5.1.0, running on ruby 2.5.1 x86_64-linux)\r\n```\r\n"}}
{"actor":{"display_login":"bbatsov"}}