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