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
Given this code in a migration, the idea of a default value for the column is somewhat nonsensical. I would expect the NotNullColumn cop to understand that default values should not be present for virtual columns.
Actual behavior
db/migrate/20221216223723_add_effective_label_to_google_calendar_instances.rb:11:16: C: Rails/NotNullColumn: Do not add a NOT NULL column without a default value.
null: false
^^^^^^^^^^^^^
Expected behavior
Given this code in a migration, the idea of a default value for the column is somewhat nonsensical. I would expect the NotNullColumn cop to understand that default values should not be present for virtual columns.
Actual behavior
Steps to reproduce the problem
See above code.
RuboCop version
The text was updated successfully, but these errors were encountered: