diff options
author | francis <francis> | 2008-03-21 14:45:38 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-21 14:45:38 +0000 |
commit | 53b0da179b7bd8fc5c47a00c1b44673a436b35d9 (patch) | |
tree | f02d44b8515d35f9dc35fca81b55155e7d76c68e /db/migrate | |
parent | 426be7f2c0eb5cf09bb35bb9d40c67b7af59d7ec (diff) |
More secure password changing - have to specifically have clicked link in
change password email, rather than using any link.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/045_add_circumstance_to_post_redirect.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/045_add_circumstance_to_post_redirect.rb b/db/migrate/045_add_circumstance_to_post_redirect.rb new file mode 100644 index 000000000..e6e7ca513 --- /dev/null +++ b/db/migrate/045_add_circumstance_to_post_redirect.rb @@ -0,0 +1,11 @@ +class AddCircumstanceToPostRedirect < ActiveRecord::Migration + def self.up + add_column :post_redirects, :circumstance, :text, :default => "normal" + PostRedirect.update_all "circumstance = 'normal'" + change_column :post_redirects, :circumstance, :text, :default => "normal", :null => false + end + + def self.down + remove_column :post_redirects, :circumstance + end +end |