refactor site_updated, add initial site file tracking

This commit is contained in:
Kyle Drake 2014-10-27 16:34:06 -07:00
parent f50b3a23d9
commit 05807e2f39
7 changed files with 44 additions and 10 deletions

View file

@ -0,0 +1,17 @@
Sequel.migration do
up {
DB.create_table! :site_files do
Integer :site_id, index: true
String :path
Bigint :size
String :sha1_hash
Boolean :is_directory, default: false
DateTime :created_at
DateTime :updated_at
end
}
down {
DB.drop_table :site_files
}
end