Add git practice note to AGENT.md

- Never commit config/database.yml unless explicitly asked
- Contains sensitive database credentials
This commit is contained in:
Zach Latta 2025-06-04 22:22:11 -04:00
parent 2936f56376
commit 2af86aeee1

View file

@ -22,6 +22,9 @@
- **Interactive shell**: `docker compose run --service-ports web /bin/bash`
- **Initial setup**: `docker compose run web bin/rails db:create db:schema:load db:seed`
## Git Practices
- **NEVER commit `config/database.yml`** unless explicitly asked to - contains sensitive local/production database credentials
## Code Style (rubocop-rails-omakase)
- **Naming**: snake_case files/methods/vars, PascalCase classes, 2-space indent
- **Controllers**: Inherit `ApplicationController`, use `before_action`, strong params with `.permit()`