From 0dfc007b134521bad4e9a051de8d6f9bdd627d12 Mon Sep 17 00:00:00 2001 From: friflaj Date: Fri, 18 Mar 2011 18:16:02 +0100 Subject: [PATCH] Slapdash use of date vs. datetime --- db/migrate/014_fix_positions.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/migrate/014_fix_positions.rb b/db/migrate/014_fix_positions.rb index fc5494ea5..13282e2c1 100644 --- a/db/migrate/014_fix_positions.rb +++ b/db/migrate/014_fix_positions.rb @@ -1,7 +1,7 @@ class FixPositions < ActiveRecord::Migration def self.up errors = [] - Issue.find(:all, :conditions => "subject is NULL or (start_date is null and not due_date is null) or start_date > due_date or updated_on < created_on or start_date < created_on").each do |issue| + Issue.find(:all, :conditions => "subject is NULL or (start_date is null and not due_date is null) or start_date > due_date or updated_on < created_on").each do |issue| errors << issue.id end @@ -11,7 +11,6 @@ def self.up puts "* due date is set, but start date is not" puts "* start date is later than due date" puts "* updated-date is before created-date" - puts "* start date is before created-date" raise "Please fix the issues with the follwing IDs and retry the migration" errors.each {|id| puts "- #{id}"