迁移问题

sso
jingquan huang 5 years ago
parent 79740683bd
commit 0b5e904671

@ -1,7 +1,7 @@
class SyncSubjectdsMobile < ActiveRecord::Migration[5.2]
def change
SubDisciplineContainer.find_each do |sc|
subject.find(sc.container_id).update_column(:show_mobile => true)
Subject.find(sc.container_id).update_column(:show_mobile, true)
end
end
end

Loading…
Cancel
Save