2 ms·
https://github.com/jandre/safe-commit-hook/blob/master/git-deny-patterns.json#L222 https://github.com/jandre/safe-commit-hook/blob/master/git-d... > schema.rb
by emmab 11y ago
https://github.com/jandre/safe-commit-hook/blob/master/git-deny-patterns.json#L222 https://github.com/jandre/safe-commit-hook/blob/master/git-d...
> schema.rb
Don't you kind of need this in a rails project?
- zachrose 11y agoNo, you can make do without it. ActiveRecord will connect to your database and learn about your tables at runtime, and if you want you can choose to think of the combination of all your migrations as the source of truth for your schema. That said I've seen this done, but wouldn't recommend it. Your schema.rb is helpful to collaborators and running through all of your migrations on a new base is silly.