DEV: Recompile theme fields after db:migrate

This commit is contained in:
David Taylor 2019-04-30 11:50:31 +01:00
parent 726dd0fe37
commit bc8b7b13ef
1 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,14 @@ end
task 'db:migrate' => ['environment', 'set_locale'] do |_, args|
SeedFu.seed(DiscoursePluginRegistry.seed_paths)
unless Discourse.skip_post_deployment_migrations?
puts
print "Recompiling theme fields... "
ThemeField.force_recompilation!
Theme.expire_site_cache!
puts "Done"
end
if MultisiteTestHelpers.load_multisite?
system("rake db:schema:dump")
system("RAILS_DB=discourse_test_multisite rake db:schema:load")