20090614091200_fix_messages_sticky_null.rb
9 lines
| 176 B
| text/x-ruby
|
RubyLexer
|
r2687 | class FixMessagesStickyNull < ActiveRecord::Migration | ||
def self.up | ||||
Message.update_all('sticky = 0', 'sticky IS NULL') | ||||
end | ||||
def self.down | ||||
# nothing to do | ||||
end | ||||
end | ||||