diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-02 22:07:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-02 22:07:56 +0000 |
commit | 7d8af70a6362517cab9aa2dc2054fa8dd8581ad8 (patch) | |
tree | 2e548d81ebeb8c3e9964b8d6b87b37ec78a0ea0e /db/migrate/084_change_auth_sources_account_limit.rb | |
parent | 8c65cc47122b802150bf3591cb4eba4f8c4fb4b4 (diff) | |
download | redmine-7d8af70a6362517cab9aa2dc2054fa8dd8581ad8.tar.gz redmine-7d8af70a6362517cab9aa2dc2054fa8dd8581ad8.zip |
Changed the maximum length of LDAP account to 255 characters.
Added length validations on AuthSource model.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@948 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/084_change_auth_sources_account_limit.rb')
-rw-r--r-- | db/migrate/084_change_auth_sources_account_limit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/084_change_auth_sources_account_limit.rb b/db/migrate/084_change_auth_sources_account_limit.rb new file mode 100644 index 000000000..6a933b894 --- /dev/null +++ b/db/migrate/084_change_auth_sources_account_limit.rb @@ -0,0 +1,9 @@ +class ChangeAuthSourcesAccountLimit < ActiveRecord::Migration + def self.up + change_column :auth_sources, :account, :string + end + + def self.down + change_column :auth_sources, :account, :string, :limit => 60 + end +end |