2017-07-23 11:26:04 +00:00
|
|
|
class FixMessagesStickyNull < ActiveRecord::Migration[4.2]
|
2009-06-14 09:19:20 +00:00
|
|
|
def self.up
|
2014-01-07 10:03:11 +00:00
|
|
|
Message.where('sticky IS NULL').update_all('sticky = 0')
|
2009-06-14 09:19:20 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
|
# nothing to do
|
|
|
|
|
end
|
|
|
|
|
end
|