FIX: uses compiler version to force rebaking of themes (#6870)

Co-Authored-By: David Taylor <david@taylorhq.com>
This commit is contained in:
Joffrey JAFFEUX 2019-01-10 12:36:13 +01:00 committed by GitHub
parent f9648de897
commit 1fdbf0fc9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -39,7 +39,7 @@ class ThemeField < ActiveRecord::Base
validates :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 = 6
belongs_to :theme

View File

@ -1,6 +0,0 @@
class ForceThemeCompilationForEmber3 < ActiveRecord::Migration[5.2]
def up
ThemeField.force_recompilation!
Theme.expire_site_cache!
end
end