standardrb / standard-rails

A Standard Ruby plugin that configures rubocop-rails
MIT License
163 stars 15 forks source link

Rails/ApplicationRecord should not be checking migration files #17

Closed bmorrall closed 1 year ago

bmorrall commented 1 year ago

Rails/ApplicationRecord makes sure models use a common Application Record.

When I am writing a migration change; I want it to remain stand-alone from the rest of the application, so changes to the application do not break any database migrations, nor load any unexpected callbacks or overhead.

This rule should be disabled for files in the db/migrate directory.