discourse/db/fixtures
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
..
001_categories.rb Replacing default brown category color 2018-08-24 14:18:14 -04:00
002_groups.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
003_post_action_types.rb Remove legacy vote post action code. (#6009) 2018-07-09 16:54:18 +08:00
004_screened_ip_addresses.rb added quick start guide to seeds 2013-12-16 12:46:46 +11:00
005_badge_types.rb FIX: fixture order 2014-07-08 07:17:44 +10:00
006_badges.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
007_web_hook_event_types.rb Rename approval web hook event type to queued post 2018-07-26 10:29:38 +05:30
009_users.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
500_lounge_category.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
501_meta_category.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
502_staff_category.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
600_themes.rb UX: Preview multiple color schemes in wizard (#6151) 2018-07-24 09:00:20 -04:00
990_settings.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
990_topics.rb FIX: store welcome topic id in custom field 2018-08-06 23:46:03 +05:30