mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:53:44 +08:00
6acdea37c4
* 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
|