Mercurial > hg > soundsoftware-site
annotate .svn/pristine/7f/7ff580843dffaee1ae5e2a96cf519330f6f872bc.svn-base @ 1155:a34a06ba1e33 redmine-2.2-integration
Provide a JS callback which should (?) be rendered by toggle_active ajax call
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 15 Jan 2013 15:48:21 +0000 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 class SaltUserPasswords < ActiveRecord::Migration |
Chris@909 | 2 |
Chris@909 | 3 def self.up |
Chris@909 | 4 say_with_time "Salting user passwords, this may take some time..." do |
Chris@909 | 5 User.salt_unsalted_passwords! |
Chris@909 | 6 end |
Chris@909 | 7 end |
Chris@909 | 8 |
Chris@909 | 9 def self.down |
Chris@909 | 10 # Unsalted passwords can not be restored |
Chris@909 | 11 raise ActiveRecord::IrreversibleMigration, "Can't decypher salted passwords. This migration can not be rollback'ed." |
Chris@909 | 12 end |
Chris@909 | 13 end |