From e3e0f5440d0c92d42694f0567b53b4259a6d0473 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 20 Oct 2015 16:36:28 +0000 Subject: Extend Filesize in the attachments table for files with size > 2GB (#10672). git-svn-id: http://svn.redmine.org/redmine/trunk@14709 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../20151020182334_change_attachments_filesize_limit_to_8.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb (limited to 'db/migrate') diff --git a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb new file mode 100644 index 000000000..a58e57183 --- /dev/null +++ b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb @@ -0,0 +1,9 @@ +class ChangeAttachmentsFilesizeLimitTo8 < ActiveRecord::Migration + def self.up + change_column :attachments, :filesize, :integer, :limit => 8, :default => 0, :null => false + end + + def self.down + change_column :attachments, :filesize, :integer, :limit => 4, :default => 0, :null => false + end +end -- cgit v1.2.3