school为0的情况数据迁移
This commit is contained in:
parent
89de36ec65
commit
de3fc8aa9f
|
@ -0,0 +1,9 @@
|
|||
class UpdateUserExtensions < ActiveRecord::Migration
|
||||
def up
|
||||
ues = UserExtensions.where(:school_id => 0)
|
||||
ues.update_all(:school_id => nil)
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue