Commit graph

6 commits

Author SHA1 Message Date
Jan Provaznik
0fc9f9d3e7 Add version 4.2 to all existing migrations
DB schema generated by a migration may look different in
rails 4 and 5 (because rails 5 may use different default values).
For this reason it's important to explicitly set for which rails
version a migration was written for.

See https://stackoverflow.com/questions/35929869/activerecordmigration-deprecation-warning-asks-for-rails-version-but-im-no/35930912#35930912
2018-11-22 13:18:28 +01:00
Michael Kozono
87529ce582 Move temp table creation into the prepare job
* Hopefully fixes spec failures in which the table doesn’t exist
* Decouples the background migration from the post-deploy migration, e.g. we could easily run it again even though the table is dropped when finished.
2017-12-01 15:26:41 -08:00
Michael Kozono
dd8680a7ae Drop temporary tracking table when finished 2017-12-01 15:26:41 -08:00
Michael Kozono
0e97e3089f Fix MySQL path field length
I believe the field only needs to fit 519 at the moment but I’m rounding up to be a little safer.

See the migration spec for more detail on the magic number 519.
2017-12-01 15:26:41 -08:00
Michael Kozono
a210cb6b82 Rename table to untracked_files_for_uploads 2017-12-01 15:26:41 -08:00
Michael Kozono
d6435b68c4 Add TrackUntrackedUploads post-deploy migration
To create the table, and schedule the background migration that begins the work.
2017-12-01 15:26:40 -08:00