Skip to content

change_column_null should not be included in BulkChangeTable cop #43

Closed
@md5

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions