workflow_state is a string, not a symbol
Change-Id: I4d7d10ae0e33a5d84c39a35fcbb0ec21f366cf4c Reviewed-on: https://gerrit.instructure.com/5220 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Zach Wily <zach@instructure.com>
This commit is contained in:
parent
98c816815f
commit
0763c48b82
|
@ -1,7 +1,7 @@
|
|||
class RemoveInactiveEnrollmentState < ActiveRecord::Migration
|
||||
def self.up
|
||||
Delayed::Job.delete_all(:tag => 'EnrollmentDateRestrictions.update_restricted_enrollments')
|
||||
Enrollment.update_all({:workflow_state => :active}, :workflow_state => :inactive)
|
||||
Enrollment.update_all({:workflow_state => 'active'}, :workflow_state => 'inactive')
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
Loading…
Reference in New Issue