mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:28:38 +08:00

* extract inline js when baking theme fields * destroy javascript cache when destroying theme fields This work is needed to support CSP work
11 lines
281 B
Ruby
11 lines
281 B
Ruby
class CreateJavascriptCaches < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :javascript_caches do |t|
|
|
t.references :theme_field, null: false
|
|
t.string :digest, null: true, index: true
|
|
t.text :content, null: false
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|