mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Add git practice note to AGENT.md
- Never commit config/database.yml unless explicitly asked - Contains sensitive database credentials
This commit is contained in:
parent
2936f56376
commit
2af86aeee1
1 changed files with 3 additions and 0 deletions
3
AGENT.md
3
AGENT.md
|
|
@ -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()`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue