bigdir/db/migrate/20090614091200_fix_messages...

10 lines
176 B
Ruby

class FixMessagesStickyNull < ActiveRecord::Migration
def self.up
Message.update_all('sticky = 0', 'sticky IS NULL')
end
def self.down
# nothing to do
end
end