2015-05-05 01:50:13 -04:00
|
|
|
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
|
2017-08-07 11:48:36 -04:00
|
|
|
t.timestamps null: false
|
2015-05-05 01:50:13 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
add_index :stylesheet_cache, [:target, :digest], unique: true
|
|
|
|
end
|
|
|
|
end
|