Redmine/db/migrate/20090614091200_fix_messages...

10 lines
182 B
Ruby

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