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
Fix Active Record documentation to match CQL API patterns
- Change relationship macros to use positional foreign_key parameter
(e.g., `has_many :posts, Post, :user_id` instead of `foreign_key:`)
- Replace `includes` with `preload` for eager loading
- Fix validation options: remove non-existent `min`, `max`, `unique`;
use correct predicates `gt`, `gte`, `lt`, `lte`
- Remove counter_cache references (not implemented in CQL)
- Fix `on_delete: "CASCADE"` to use symbol `:cascade`
These changes ensure all code examples compile and match the actual
CQL Active Record implementation.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments