view db/migrate/.svn/text-base/20090614091200_fix_messages_sticky_null.rb.svn-base @ 786:ae82810661da feature_14

Fixes bug related to returning results with non root projects.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 18 Nov 2011 16:53:19 +0000
parents 513646585e45
children
line wrap: on
line source
class FixMessagesStickyNull < ActiveRecord::Migration
  def self.up
    Message.update_all('sticky = 0', 'sticky IS NULL')
  end

  def self.down
    # nothing to do
  end
end