mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +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:
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()`
|
||||
|
||||
Reference in New Issue
Block a user