Skip to content

Added RuboCop cops for checking DB migrations

yorickpeterse-staging requested to merge migration-cops into master

What does this MR do?

This MR adds two RuboCop cops for checking migrations

Are there points in the code the reviewer needs to double check?

Yes, the code and whether we actually want this or not. Also, do we want tests for cops or not? If so, how on earth do you test cops?

Why was this MR needed?

While generated migrations tell developers to use certain methods there's no tool that automatically enforces this.

What are the relevant issue numbers?

Not directly related but it lead me to adding this: #14545 (closed)

Does this MR meet the acceptance criteria?

cc @rspeicher @dzaporozhets

Merge request reports

Loading