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
Is your feature request related to a problem? Please describe.
There is a cop BulkChangeTable that checks for combinable alter queries when changing multiple columns.
Sorry if I am mistaken, but I believe that in the past there was no corresponding change_table method for the change_column_null method, and that is how it was removed. #48
But then the change_null method in change_table is added, which corresponds to the change_column_null method. rails/rails@972d18e
Describe the solution you'd like
I want to check for combinable alter queries and warn if NULL constraint changes are made to multiple columns.
Since there is a method change_null in change_table corresponding to the change_column_null method, how about adding a change check for null constraints to BulkChangeTable?
Additional context
Nothing specifically.
The text was updated successfully, but these errors were encountered:
ccutrer
added a commit
to ccutrer/rubocop-rails
that referenced
this issue
May 22, 2024
change_column_null is only combinable with PostgreSQL, and is only
available as change_null within a change_table block since Rails 6.1,
so target to only those cases.
ccutrer
added a commit
to ccutrer/rubocop-rails
that referenced
this issue
May 22, 2024
change_column_null is only combinable with PostgreSQL, and is only
available as change_null within a change_table block since Rails 6.1,
so target to only those cases.
Is your feature request related to a problem? Please describe.
There is a cop BulkChangeTable that checks for combinable alter queries when changing multiple columns.
Sorry if I am mistaken, but I believe that in the past there was no corresponding change_table method for the change_column_null method, and that is how it was removed. #48
But then the change_null method in change_table is added, which corresponds to the change_column_null method.
rails/rails@972d18e
Describe the solution you'd like
I want to check for combinable alter queries and warn if NULL constraint changes are made to multiple columns.
Describe alternatives you've considered
Since there is a method change_null in change_table corresponding to the change_column_null method, how about adding a change check for null constraints to BulkChangeTable?
Additional context
Nothing specifically.
The text was updated successfully, but these errors were encountered: