parent
505c55f240
commit
4a64c3de74
@ -0,0 +1,8 @@
|
||||
class Weapps::CoursesController < Weapps::BaseController
|
||||
before_action :require_wechat_login!
|
||||
|
||||
def create
|
||||
return render_error("只有老师身份才能创建课堂") unless current_user.is_teacher?
|
||||
|
||||
end
|
||||
end
|
@ -1,6 +0,0 @@
|
||||
class AddStickyToCourse < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :courses, :sticky, :boolean, default: 0
|
||||
add_column :courses, :sticky_time, :datetime
|
||||
end
|
||||
end
|
@ -0,0 +1,6 @@
|
||||
class AddStickyToCourseMembers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :course_members, :sticky, :boolean, default: 0
|
||||
add_column :course_members, :sticky_time, :datetime
|
||||
end
|
||||
end
|
Loading…
Reference in new issue