diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20090614091200_fix_messages_sticky_null.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090614091200_fix_messages_sticky_null.rb b/db/migrate/20090614091200_fix_messages_sticky_null.rb new file mode 100644 index 000000000..cbe741732 --- /dev/null +++ b/db/migrate/20090614091200_fix_messages_sticky_null.rb @@ -0,0 +1,9 @@ +class FixMessagesStickyNull < ActiveRecord::Migration + def self.up + Message.update_all('sticky = 0', 'sticky IS NULL') + end + + def self.down + # nothing to do + end +end |