From f9018de5dc6c0fa8e58022f26de9bb42aca27f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Sat, 12 Oct 2024 10:54:10 +0200 Subject: [PATCH] Note that Active Record 7.1+ supports composite primary keys --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8159575..b671da8 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,8 @@ Below is a list of all associations defined depending on the features loaded: | webauthn | `:webauthn_keys` | `has_many` | `WebauthnKey` | `account_webauthn_keys` | | webauthn | `:webauthn_user_id` | `has_one` | `WebauthnUserId` | `account_webauthn_user_ids` | -Note that some Rodauth tables use composite primary keys, which Active Record doesn't support out of the box. For associations to work properly in Active Record, you might need to add the [composite_primary_keys] gem to your Gemfile. On Sequel, associations will work without any changes, because Sequel supports composite primary keys. +> ![NOTE] +> Note that some Rodauth tables use composite primary keys, which are supported in Active Record 7.1+. If you're on an older version of Active Record, you might need to add the [composite_primary_keys] gem to your Gemfile. Sequel has always natively supported composite primary keys. ## Extending associations