Skip to content

RuboCop extension focused on ActiveRecord migration.

License

Notifications You must be signed in to change notification settings

r7kamura/rubocop-migration

Repository files navigation

rubocop-migration

test

RuboCop extension focused on ActiveRecord migration.

Usage

Install rubocop-migration gem:

This gem is not yet published to rubygems.org. See #1 for more details.

# Gemfile
gem 'rubocop-migration', require: false, github: 'r7kamura/rubocop-migration', branch: 'main'

then require rubocop-migration and enable the cops you want to use in your .rubocop.yml:

# .rubocop.yml
require:
  - rubocop-migration

Migration/AddCheckConstraint:
  Enabled: false

Note that all cops are Enabled: false by default.

Cops

Please read the comments of the respective cop classes for more information.

Acknowledgements

This gem was heavily inspired by the following gem:

About

RuboCop extension focused on ActiveRecord migration.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •