discourse/db/fixtures
Krzysztof Kotlarek d57b7abe67
FIX: setup with db:create db:migrate (#29609)
After data seed, we should reset Redis cache to ensure that the correct flags are cached.

However, `db:create` is skipping Redis 

https://github.com/discourse/discourse/blob/main/lib/tasks/db.rake#L39

And uses `ActiveSupport::Cache::MemoryStore.new`

e2292d4c59/lib/discourse.rb (L523)

Therefore, the reset flags cache was moved to initializers and evaluated only when the cache is Redis and Flags table already exists.

Meta: https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754
2024-11-06 15:06:17 +11:00
..
001_refresh.rb DEV: Apply syntax_tree formatting to db/* 2023-01-09 11:59:41 +00:00
002_groups.rb DEV: Apply syntax_tree formatting to db/* 2023-01-09 11:59:41 +00:00
003_flags.rb FIX: setup with db:create db:migrate (#29609) 2024-11-06 15:06:17 +11:00
003_post_action_types.rb PERF: do not expire cache when PostActionType is saved (#28337) 2024-08-13 18:01:31 +10:00
004_screened_ip_addresses.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
005_badge_types.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
006_badges.rb DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
007_web_hook_event_types.rb DEV: Delete plugin specific webhook event types (#29374) 2024-10-24 11:02:58 -05:00
009_users.rb DEV: Use Discourse::SYSTEM_USER_ID in fixtures/009_users (#24743) 2023-12-07 09:04:45 +10:00
010_uploads.rb DEV: update comments on unused Uploads. -4 is now considered reserved. (#14362) 2021-09-16 17:44:51 -04:00
500_categories.rb DEV: Apply syntax_tree formatting to db/* 2023-01-09 11:59:41 +00:00
600_themes.rb DEV: Use Discourse::SYSTEM_USER_ID in fixtures/009_users (#24743) 2023-12-07 09:04:45 +10:00
990_settings.rb DEV: Only warn about invalid email setting in production 2020-04-15 11:21:21 -04:00
990_topics.rb DEV: Apply syntax_tree formatting to db/* 2023-01-09 11:59:41 +00:00