diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-08-05 17:58:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-08-05 17:58:33 +0000 |
commit | b764e398475c26217bcca8ac9063f053bc1cf627 (patch) | |
tree | f8c44b9b990ff60f3cf51fe65bb8dad9dae8bd35 /db/migrate | |
parent | bd4fba08e5bec539a746e9be422b9c2baab51406 (diff) | |
download | redmine-b764e398475c26217bcca8ac9063f053bc1cf627.tar.gz redmine-b764e398475c26217bcca8ac9063f053bc1cf627.zip |
Option to force a user to change his password (#3872).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12081 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130729070143_add_users_must_change_passwd.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130729070143_add_users_must_change_passwd.rb b/db/migrate/20130729070143_add_users_must_change_passwd.rb new file mode 100644 index 000000000..13c29292e --- /dev/null +++ b/db/migrate/20130729070143_add_users_must_change_passwd.rb @@ -0,0 +1,9 @@ +class AddUsersMustChangePasswd < ActiveRecord::Migration + def up + add_column :users, :must_change_passwd, :boolean, :default => false, :null => false + end + + def down + remove_column :users, :must_change_passwd + end +end |