fix module progression migrations

test plan:
 - migrations should run successfully, specifically
   - 20140418210000
   - 20140418211204
 - migrations should run predeploy

Change-Id: I764f996be7d7da350a3e88e702d1578979d7523d
Reviewed-on: https://gerrit.instructure.com/35245
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Mark Severson 2014-05-21 10:00:24 -06:00 committed by Cody Cutrer
parent 8178266194
commit 041c9b81af
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,5 @@
class PopulateLockVersionOnContextModuleProgressions < ActiveRecord::Migration
tag :postdeploy
tag :predeploy
def self.up
DataFixup::PopulateLockVersionOnContextModuleProgressions.run

View File

@ -2,7 +2,6 @@ class DisallowNullOnContextModuleProgressionLockVersionColumn < ActiveRecord::Mi
tag :predeploy
def self.up
ContextModuleProgression.where(lock_version: nil).update_all(lock_version: 0)
change_column_null :context_module_progressions, :lock_version, false
end