Redmine/db/migrate/20090614091200_fix_messages...

10 lines
176 B
Ruby
Raw Normal View History

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