summaryrefslogtreecommitdiffstats
path: root/db/migrate/20150510083747_change_documents_title_limit.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-10 08:45:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-10 08:45:56 +0000
commitf8a9a78ecfa50d53ca8416d296af8a02da8eb7d7 (patch)
treefa89b8059872fd51c48f2b66a7c4db59d9dc8eb0 /db/migrate/20150510083747_change_documents_title_limit.rb
parent77e657b719f57b31002479a92d8e3a838dfa39a5 (diff)
downloadredmine-f8a9a78ecfa50d53ca8416d296af8a02da8eb7d7.tar.gz
redmine-f8a9a78ecfa50d53ca8416d296af8a02da8eb7d7.zip
Raises 60-character limit for document titles to 255 (#12312).
git-svn-id: http://svn.redmine.org/redmine/trunk@14261 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20150510083747_change_documents_title_limit.rb')
-rw-r--r--db/migrate/20150510083747_change_documents_title_limit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150510083747_change_documents_title_limit.rb b/db/migrate/20150510083747_change_documents_title_limit.rb
new file mode 100644
index 000000000..6e3090334
--- /dev/null
+++ b/db/migrate/20150510083747_change_documents_title_limit.rb
@@ -0,0 +1,9 @@
+class ChangeDocumentsTitleLimit < ActiveRecord::Migration
+ def self.up
+ change_column :documents, :title, :string, :limit => nil, :default => '', :null => false
+ end
+
+ def self.down
+ change_column :documents, :title, :string, :limit => 60, :default => '', :null => false
+ end
+end