actually, there's no problem, when both dates are the same

this happens when testing the down and up migration
pull/6827/head
Gregor Schmidt 14 years ago
parent 04b23eef93
commit ce7fed699a
  1. 4
      db/migrate/20110513130147_remove_sprint_start_date.rb

@ -8,7 +8,9 @@ class RemoveSprintStartDate < ActiveRecord::Migration
Version.transaction do
Version.all.each do |version|
if version.sprint_start_date.present? and version.start_date.present?
if version.sprint_start_date.present? and version.start_date.present? and
version.sprint_start_date != version.start_date
raise "Version #{version.id} has a start date and a sprint start date! Migrations were not executed in the correct order"
elsif version.sprint_start_date.present? and version.start_date.blank?

Loading…
Cancel
Save