From 2baa55a04fc633f84ec55cafe183ef4596e97ca8 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 26 Mar 2010 14:27:47 -0300 Subject: [PATCH] Clearing theme for profiles with theme "default" --- db/migrate/20100326171758_clear_default_theme_from_profiles.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) create mode 100644 db/migrate/20100326171758_clear_default_theme_from_profiles.rb diff --git a/db/migrate/20100326171758_clear_default_theme_from_profiles.rb b/db/migrate/20100326171758_clear_default_theme_from_profiles.rb new file mode 100644 index 0000000..229730e --- /dev/null +++ b/db/migrate/20100326171758_clear_default_theme_from_profiles.rb @@ -0,0 +1,9 @@ +class ClearDefaultThemeFromProfiles < ActiveRecord::Migration + def self.up + execute("update profiles set theme = null where theme = 'default'") + end + + def self.down + say "WARNING: cannot undo this migration" + end +end -- libgit2 0.21.2