socialforge/db/migrate/20090614091200_fix_messages...

10 lines
176 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class FixMessagesStickyNull < ActiveRecord::Migration
def self.up
Message.update_all('sticky = 0', 'sticky IS NULL')
end
def self.down
# nothing to do
end
end