Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
1cc224e709
@ -1,2 +1,3 @@
|
||||
json.is_pdf @is_pdf
|
||||
json.partial! 'attachments/attachment_small', attachment: @file
|
||||
json.partial! "attachment_histories/list", attachment_histories: @attachment_histories
|
||||
|
@ -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