summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130729070143_add_users_must_change_passwd.rb9
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