You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands now, the BulkChangeTable cop flags uses of change_column_null. However, there is no corresponding method on ActiveRecord::ConnectionAdapters::Table to replace it with as there is with change_column_default and Table#change_default. The closest thing is Table#change, but that requires the developer to repeat the entire column definition (which is why change_column_null exists in the first place in addition to change_column).
Am I missing a reasonable replacement for change_column_null?
The text was updated successfully, but these errors were encountered:
The `change_column_null` method does not have corresponding method to
use in the suggested `change_table` version.
We should remove it from the offended methods list.
anthony-robin
pushed a commit
to anthony-robin/rubocop-rails
that referenced
this issue
Jun 11, 2019
The `change_column_null` method does not have corresponding method to
use in the suggested `change_table` version.
We should remove it from the offended methods list.
anthony-robin
pushed a commit
to anthony-robin/rubocop-rails
that referenced
this issue
Jun 11, 2019
The `change_column_null` method does not have corresponding method to
use in the suggested `change_table` version.
We should remove it from the offended methods list.
As it stands now, the
BulkChangeTable
cop flags uses ofchange_column_null
. However, there is no corresponding method onActiveRecord::ConnectionAdapters::Table
to replace it with as there is withchange_column_default
andTable#change_default
. The closest thing isTable#change
, but that requires the developer to repeat the entire column definition (which is whychange_column_null
exists in the first place in addition tochange_column
).Am I missing a reasonable replacement for
change_column_null
?The text was updated successfully, but these errors were encountered: