discourse/config/initializers
Robin Ward ce78eff888 FIX: Migration paths were being forgotten
According to the [Rails
Source](https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/databases.rake#L20)
the `ActiveRecord::Migrator.migrations_paths` are overwritten with the
value of `ActiveRecord::Tasks::DatabaseTasks.migrations_paths` every
time the config is loaded.

This caused a bug for Discourse development where if you ran:

`rake db:drop db:create db:migrate` in one line, you would not get our
post migrations, as those had a custom value for `migrations_paths`.

The fix is to use `ActiveRecord::Tasks::DatabaseTasks.migrations_paths`
to set up all our custom paths. Everything seems to work as expected.
2019-12-16 14:13:47 -05:00
..
001-redis.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
002-freedom_patches.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
003-sql_builder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
004-message_bus.rb SECURITY: Restrict message-bus access on login_required sites 2019-08-14 09:43:12 +01:00
004-rails_multisite.rb FIX: Sidekiq fails to start if any of the multisite has problems. 2018-12-12 11:30:14 +08:00
005-site_settings.rb FIX: Fix rake db:create after zeitwerk changes 2019-10-08 12:22:34 +01:00
006-ensure_login_hint.rb FEATURE: SKIP_DB_AND_REDIS env var (#7756) 2019-06-13 12:58:27 +10:00
006-mini_profiler.rb FIX: rack-mini-profiler not showing plugin frames 2019-08-19 15:47:53 +10:00
008-rack-cors.rb Allow CORS combined with HTTP Auth 2019-09-09 15:02:20 -04:00
009-omniauth.rb DEV: If only one auth provider is enabled allow GET request 2019-08-12 11:03:05 +01:00
010-discourse_iife.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
012-web_hook_events.rb DEV: Remove code deprecated by the new Reviewable API (#8023) 2019-08-26 10:33:26 -03:00
013-excon_defaults.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
014-track-setting-changes.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
050-force_https.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
099-anon-cache.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
099-drain_pool.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-i18n.rb FEATURE: Load translation overrides without JS eval 2019-11-05 19:16:38 +01:00
100-logster.rb SECURITY: add rate limiting to anon JS error reporting 2019-08-20 11:29:11 +10:00
100-oj.rb PERF: Use Oj for serializing JSON. (#7820) 2019-06-28 12:16:00 +10:00
100-onebox_options.rb FIX: include onebox default options in development environment 2019-11-07 15:42:53 +05:30
100-push-notifications.rb FIX: Make initializer work on first db:migrate 2019-07-30 10:23:24 +02:00
100-quiet_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-secret_token.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-session_store.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-sidekiq.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
100-silence_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-strong_parameters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-verify_config.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-watch_for_restart.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
100-wrap_parameters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
101-lograge.rb DEV: check for specifics when looking at ENABLE_LOGRAGE 2019-06-13 15:59:20 +10:00
200-message_bus_request_tracker.rb FEATURE: enable_performance_http_headers for performance diagnostics 2019-06-05 16:08:11 +10:00
300-perf.rb FEATURE: add hook after all initializers 2019-08-26 10:49:26 +10:00
000-mini_sql.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
000-post_migration.rb FIX: Migration paths were being forgotten 2019-12-16 14:13:47 -05:00