You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -372,7 +372,8 @@ Even in these cases, wrap the integration in a Stimulus controller and connect i
372
372
4.**Testing**: Include both unit and integration tests for location-based features
373
373
5.**Performance**: Consider database indexes for geographic queries
374
374
6.**Security**: Never log or expose user location data inappropriately
375
-
7.**Public Sharing**: When implementing features that interact with stats, consider public sharing access patterns:
375
+
7.**Migrations**: Put all migrations (schema and data) in `db/migrate/`, not `db/data/`. Data manipulation migrations use the same `ActiveRecord::Migration` class and should run in the standard migration sequence.
376
+
8.**Public Sharing**: When implementing features that interact with stats, consider public sharing access patterns:
376
377
- Use `public_accessible?` method to check if a stat can be publicly accessed
377
378
- Support UUID-based access in API endpoints when appropriate
378
379
- Respect expiration settings and disable sharing when expired
0 commit comments