discourse/spec
Guo Xiang Tan 40fa96777d
FEATURE: Post deployment migrations. (#6406)
This moves us away from the delayed drops pattern which
was problematic on two counts. First, it uses a hardcoded "delay for"
duration which may be too short for certain deployment strategies.
Second, delayed drop doesn't ensure that it only runs after
the latest application code has been deployed. If the migration runs
and the application code fails to deploy, running the migration after
"delay for" has been met will cause the application to blow up.

The new strategy allows post deployment migrations to be skipped if the
env `SKIP_POST_DEPLOYMENT_MIGRATIONS` is provided.

```
SKIP_POST_DEPLOYMENT_MIGRATIONS=1 rake db:migrate
-> deploy app servers
SKIP_POST_DEPLOYMENT_MIGRATIONS=0 rake db:migrate
```

To aid with the generation of a post deployment migration, a generator
has been added. Simply run `rails generate post_migration`.
2018-10-08 15:47:38 +08:00
..
components FEATURE: Post deployment migrations. (#6406) 2018-10-08 15:47:38 +08:00
fabricators Add missing fields to Upload Fabricator (#6448) 2018-10-04 22:00:07 +08:00
fixtures FEATURE: Post deployment migrations. (#6406) 2018-10-08 15:47:38 +08:00
helpers extract inline JS that's used to store preloaded data (#6370) 2018-09-17 16:31:46 +08:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration FEATURE: Automatically expire keys if not used for a configurable amount of time. (#6264) 2018-08-20 17:36:14 +02:00
integrity Use a more helpful failure message in spec 2018-09-13 21:31:44 +02:00
jobs DEV: Improve Jobs::CleanUpEmailLogs specs. 2018-10-08 11:11:20 +08:00
lib FIX: Don't update user_profile URLs unless upload is persisted. 2018-10-01 14:21:39 +08:00
mailers FIX: Notifications shouldn't use user locale unless allow_user_locale is enabled 2018-09-05 11:44:28 +02:00
models FEATURE: Mixed case tagging (#6454) 2018-10-05 10:23:52 +01:00
multisite DEV: Clear connections after multisite specs. 2018-09-11 10:15:06 +08:00
requests FIX: stop logging every time invalid params are sent 2018-10-05 14:33:19 +10:00
serializers Add missing fields to Upload Fabricator (#6448) 2018-10-04 22:00:07 +08:00
services FEATURE: only export settings that changed via rake task 2018-10-08 11:54:52 +11:00
support DEV: Assert for 200 response code to avoid changing magic helper in the future. 2018-06-07 16:11:09 +08:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rails_helper.rb FEATURE: Post deployment migrations. (#6406) 2018-10-08 15:47:38 +08:00