summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091010093521_fix_users_custom_values.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20091010093521_fix_users_custom_values.rb')
-rw-r--r--db/migrate/20091010093521_fix_users_custom_values.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20091010093521_fix_users_custom_values.rb b/db/migrate/20091010093521_fix_users_custom_values.rb
new file mode 100644
index 000000000..923c78fc0
--- /dev/null
+++ b/db/migrate/20091010093521_fix_users_custom_values.rb
@@ -0,0 +1,9 @@
+class FixUsersCustomValues < ActiveRecord::Migration
+ def self.up
+ CustomValue.update_all("customized_type = 'Principal'", "customized_type = 'User'")
+ end
+
+ def self.down
+ CustomValue.update_all("customized_type = 'User'", "customized_type = 'Principal'")
+ end
+end