This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # config/initializers/uuidv7_default.rb | |
| # Ensure generators use UUID columns for PKs and references | |
| Rails.application.config.generators do |g| | |
| g.orm :active_record, primary_key_type: :uuid | |
| end | |
| # When migrations call create_table with id: :uuid, make the DB default uuidv7() | |
| module UuidV7PrimaryKeyDefault | |
| def primary_key(name, type = :primary_key, **options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AllCops: | |
| NewCops: enable | |
| Exclude: | |
| - bin/yarn | |
| - db/schema.rb | |
| - vendor/**/* | |
| - node_modules/**/* | |
| - tmp/**/* | |
| - public/**/* | |
| - bin/**/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PostCheckout: | |
| BundleInstall: | |
| enabled: true | |
| PreCommit: | |
| ALL: | |
| problem_on_unmodified_line: warn | |
| requires_files: true | |
| required: false | |
| quiet: false |