redmine/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb
Jean-Philippe Lang 30f7be9c19 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
2017-04-03 11:11:36 +00:00

9 lines
221 B
Ruby

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