From 0b5e90467112f1ecb7f29ae38ce706ea99c44290 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Mon, 24 Feb 2020 11:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20200223021427_sync_subjectds_mobile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20200223021427_sync_subjectds_mobile.rb b/db/migrate/20200223021427_sync_subjectds_mobile.rb index 1c2fb6c3e..fae6aaabb 100644 --- a/db/migrate/20200223021427_sync_subjectds_mobile.rb +++ b/db/migrate/20200223021427_sync_subjectds_mobile.rb @@ -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