New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails/BulkChangeTable error on empty migration #5958
Labels
Comments
Thanks @andyw8, I'll take a look later. |
wata727
added a commit
to wata727/rubocop
that referenced
this issue
Jun 6, 2018
Fixes rubocop#5958 `Rails/BulkChangeTable` cop raises an error when there is the migration method with no entries like the following: ```ruby class EmptyMigration < ActiveRecord::Migration[5.1] def change; end end ``` This change makes this Cop to handle empty method body without errors.
8 tasks
bbatsov
pushed a commit
that referenced
this issue
Jun 6, 2018
Fixes #5958 `Rails/BulkChangeTable` cop raises an error when there is the migration method with no entries like the following: ```ruby class EmptyMigration < ActiveRecord::Migration[5.1] def change; end end ``` This change makes this Cop to handle empty method body without errors.
koic
pushed a commit
to rubocop/rubocop-rails
that referenced
this issue
Oct 26, 2018
Fixes rubocop/rubocop#5958 `Rails/BulkChangeTable` cop raises an error when there is the migration method with no entries like the following: ```ruby class EmptyMigration < ActiveRecord::Migration[5.1] def change; end end ``` This change makes this Cop to handle empty method body without errors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rails/BulkChangeTable fails on a migration file with no entries.
Expected behavior
No warnings should be reported.
Actual behavior
Fails with:
Steps to reproduce the problem
Run RuboCop on the following:
RuboCop version
0.57.0 (using Parser 2.5.0.5, running on ruby 2.5.0 x86_64-darwin16)
The text was updated successfully, but these errors were encountered: