Auto-create check constraints for text fields with limit

Move column defaults from migration strategy to migrations.
Compact index creation inside migrations.
Disable database schema generation.
This commit is contained in:
2026-11-26 02:32:09 +01:00
parent 74f9a09098
commit b6d2c19b0b
9 changed files with 148 additions and 210 deletions
+4
View File
@@ -2,6 +2,10 @@
# for a full overview on how database connection configuration can be specified.
default: &default
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 3) %>
# Disable schema dump. It is redundant with regard to migration files and
# buggy (as of Rails 8.1.4 adds foreign key constraints multiple times after
# repeated db:schema:load).
schema_dump: false
production:
<<: *default