demarches-normaliennes/db
Pierre de La Morinerie a08c18eb81 db: fix ActiveStorage migration to Rails 6.1
1. Executing an `update_all` on a lot of records is slow. Instead we
backfill the column in batches (without locking the table).

2. We can't mark the colum as not-null, because already running
instances still using the old code will not use the service_name
column yet.

  A later migration will backfill the remaining data and make the column
non-null.
2021-03-25 18:08:29 +01:00
..
migrate db: fix ActiveStorage migration to Rails 6.1 2021-03-25 18:08:29 +01:00
schema.rb db: fix ActiveStorage migration to Rails 6.1 2021-03-25 18:08:29 +01:00
seeds.rb fix db/seeds.rb (replace "Administration" by "SuperAdmin" 2020-11-25 19:54:32 +01:00