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:
parent
8178266194
commit
041c9b81af
|
@ -1,5 +1,5 @@
|
|||
class PopulateLockVersionOnContextModuleProgressions < ActiveRecord::Migration
|
||||
tag :postdeploy
|
||||
tag :predeploy
|
||||
|
||||
def self.up
|
||||
DataFixup::PopulateLockVersionOnContextModuleProgressions.run
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue