Merge branches 'dev_aliyun' and 'ysldev_aliyun_paixugai' of https://bdgit.educoder.net/Hjqreturn/educoder into ysldev_aliyun_paixugai
commit
b7eeb70fa4
@ -0,0 +1,4 @@
|
||||
class CompetitionManager < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :competition
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
class ReCounterCourseGroups < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
CourseGroup.find_each do |group|
|
||||
CourseGroup.reset_counters(group.id, :course_members_count)
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,10 @@
|
||||
class CreateCompetitionManagers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :competition_managers do |t|
|
||||
t.references :user
|
||||
t.references :competition
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
class AddStatisticsToCourseModule < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
Course.includes(:course_modules).all.each do |course|
|
||||
CourseModule.create!(course_id: course.id, module_type: "statistics", hidden:0, module_name: "统计", position: course.course_modules.pluck(:position).max + 1)
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 303 KiB After Width: | Height: | Size: 306 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 303 KiB After Width: | Height: | Size: 306 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue