summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-15 07:48:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-15 07:48:37 +0000
commitee1d9647b86f9e886cea07abe6e4e4126352a018 (patch)
tree42463aa055c9f767f66832729d90d73920cfe29b /db
parent5891a873fbf5fe934c1d5fef2d4c763c604d4c32 (diff)
downloadredmine-ee1d9647b86f9e886cea07abe6e4e4126352a018.tar.gz
redmine-ee1d9647b86f9e886cea07abe6e4e4126352a018.zip
Raised group name maximum length to 255 characters (#13174).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11392 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130215073721_change_users_lastname_length_to_255.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130215073721_change_users_lastname_length_to_255.rb b/db/migrate/20130215073721_change_users_lastname_length_to_255.rb
new file mode 100644
index 000000000..7d68e37d8
--- /dev/null
+++ b/db/migrate/20130215073721_change_users_lastname_length_to_255.rb
@@ -0,0 +1,9 @@
+class ChangeUsersLastnameLengthTo255 < ActiveRecord::Migration
+ def self.up
+ change_column :users, :lastname, :string, :limit => 255, :default => '', :null => false
+ end
+
+ def self.down
+ change_column :users, :lastname, :string, :limit => 30, :default => '', :null => false
+ end
+end