mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
identifies all uploads with the SHA1 hash of the file content
This commit is contained in:
6
db/migrate/20130615075557_add_sha_to_uploads.rb
Normal file
6
db/migrate/20130615075557_add_sha_to_uploads.rb
Normal 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
|
||||
Reference in New Issue
Block a user