discourse/db
Martin Brennan 79344fe212
FIX: UserField#field_type column change to enum migration
Followup 5963c03643 and
6be4ef59fa

This migration was causing issues on deploy for some sites that
had user fields required to be filled in on signup. The Site#user_fields
cache was getting poisoned, and the `field_type` for all fields
was ending up as `null`, making it impossible to fill
them out in a form.

This commit rectifies the issue by doing the column rename/swap
in the initial migration and _only_ dropping columns in the
post migration, since this messes with the AR cache.
2024-06-20 11:41:03 +10:00
..
fixtures FIX: move something else flag to the bottom (#27366) 2024-06-06 15:45:30 +10:00
migrate FIX: UserField#field_type column change to enum migration 2024-06-20 11:41:03 +10:00
post_migrate FIX: UserField#field_type column change to enum migration 2024-06-20 11:41:03 +10:00
api_test_seeds.rb DEV: Apply syntax_tree formatting to `db/*` 2023-01-09 11:59:41 +00:00