A platform for community discussion. Free, open, simple.
FIX: uses compiler version to force rebaking of themes (#6870)
Joffrey JAFFEUX1fdbf0fc9b7e
diff --git a/app/models/theme_field.rb b/app/models/theme_field.rbindex b7c0e348da5..07e6e3fd76d 100644--- a/app/models/theme_field.rb+++ b/app/models/theme_field.rb@@ -39,7 +39,7 @@ class ThemeField < ActiveRecord::Basevalidates :name, format: { with: /\A[a-z_][a-z0-9_-]*\z/i },if: Proc.new { |field| ThemeField.theme_var_type_ids.include?(field.type_id) }- COMPILER_VERSION = 5+ COMPILER_VERSION = 6belongs_to :themediff --git a/db/migrate/20181218143317_force_theme_compilation_for_ember3.rb b/db/migrate/20181218143317_force_theme_compilation_for_ember3.rbdeleted file mode 100644index 9c5e095fc41..00000000000--- a/db/migrate/20181218143317_force_theme_compilation_for_ember3.rb+++ /dev/null@@ -1,6 +0,0 @@-class ForceThemeCompilationForEmber3 < ActiveRecord::Migration[5.2]- def up- ThemeField.force_recompilation!- Theme.expire_site_cache!- end-end