gitlab-org--gitlab-foss/db/post_migrate
Timothy Andrew eb434b15eb Make ChangePersonalAccessTokensDefaultBackToEmptyArray a "post" migration.
If we leave this as a regular migration, we could have the following flow:

1. Application knows nothing about scopes.
2. First migration runs, all existing personal access tokens have `api` scope
3. Application still knows nothing about scopes.
4. Second migration runs, all tokens created after this point have no scope
5. Application still knows nothing about scopes.
6. Tokens created at this time _should have the API scope, but instead have no scope_
7. Application code is reloaded, application knows about scopes
8. Tokens created after this point only have no scope if the user deliberately
   chooses to have no scopes.

Point #6 is the problem here. To avoid this, we move the second migration to a
"post" migration, which runs after the application code is deployed/reloaded.
2016-12-16 16:29:33 +05:30
..
.gitkeep
20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb Make ChangePersonalAccessTokensDefaultBackToEmptyArray a "post" migration. 2016-12-16 16:29:33 +05:30
20161011222551_remove_inactive_jira_service_properties.rb Update 8.14-rc1 migrations to minimize downtime and deploy time 2016-11-11 15:34:00 -03:00
20161109150329_fix_project_records_with_invalid_visibility.rb Fix a badly-performing migration 2016-11-15 17:07:58 +00:00