identifies all uploads with the SHA1 hash of the file content

This commit is contained in:
Régis Hanol
2013-06-15 10:33:57 +02:00
parent 6ea91b4416
commit 6c4554b941
2 changed files with 28 additions and 13 deletions

View File

@@ -0,0 +1,6 @@
class AddShaToUploads < ActiveRecord::Migration
def change
add_column :uploads, :sha, :string, null: true
add_index :uploads, :sha, unique: true
end
end