Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_Ysm
commit
8aab3200e2
@ -0,0 +1,8 @@
|
||||
class ModifyClassPeriodForCourses < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
Course.find_each do |c|
|
||||
c.update_column(:class_period, c.class_period.to_i)
|
||||
end
|
||||
change_column :courses, :class_period, :integer
|
||||
end
|
||||
end
|
Loading…
Reference in new issue