Combine uuid-old and uuid branch changes

- Switch to binary 16 for UUID keys
- Remove AccountScopedRecord base class, all model use binary uuids now
- Fix the search sql to serialize uuids properly
- Patch the MySQL schema dumper to output binary lengths
This commit is contained in:
Donal McBreen
2025-11-12 16:42:34 +00:00
committed by Mike Dalessio
parent 05a7ec84e2
commit fc56ad9d7c
52 changed files with 513 additions and 390 deletions
+2
View File
@@ -1,5 +1,7 @@
class ApplicationRecord < ActiveRecord::Base
primary_abstract_class
attribute :id, :uuid, default: -> { ActiveRecord::Type::Uuid.generate }
connects_to database: { writing: :primary, reading: :replica }
end