FEATURE: move stylesheet cache out of the uploads directory

This commit is contained in:
Sam
2015-05-05 15:50:13 +10:00
parent 8e372f3616
commit f58d85edea
8 changed files with 105 additions and 6 deletions
@@ -0,0 +1,12 @@
class AddStylesheetCache < ActiveRecord::Migration
def change
create_table :stylesheet_cache do |t|
t.string :target, null: false
t.string :digest, null: false
t.text :content, null: false
t.timestamps
end
add_index :stylesheet_cache, [:target, :digest], unique: true
end
end