Skip to content

Commit

Permalink
fix module progression migrations
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Jenkins <[email protected]>
Product-Review: Cody Cutrer <[email protected]>
QA-Review: Cody Cutrer <[email protected]>
  • Loading branch information
miquella authored and ccutrer committed May 21, 2014
1 parent 8178266 commit 041c9b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class PopulateLockVersionOnContextModuleProgressions < ActiveRecord::Migration
tag :postdeploy
tag :predeploy

def self.up
DataFixup::PopulateLockVersionOnContextModuleProgressions.run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 041c9b8

Please sign in to comment.