Changes the digest used for attachments to SHA256 (#25240).

Patch by Jens Kraemer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16454 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-04-03 11:11:36 +00:00
parent 9441ab0ca8
commit 30f7be9c19
4 changed files with 20 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
class ChangeAttachmentsDigestLimitTo64 < ActiveRecord::Migration
def up
change_column :attachments, :digest, :string, limit: 64
end
def down
change_column :attachments, :digest, :string, limit: 40
end
end