复制班级中资源的提示修改
This commit is contained in:
parent
a1149c1104
commit
0dfc887f74
|
@ -114,7 +114,7 @@
|
|||
<label class="fl">
|
||||
<input name="course_content_type[]" type="checkbox" value="1" class="resourceCopy"/>
|
||||
资源</label>
|
||||
<span class="c_red ml5 fl mb10">复制到新班级的资源将在1个月后发布,请您调整资源的发布时间,否则学生可能看不到资源。</span>
|
||||
<span class="c_red ml5 fl mb10">复制到新班级的资源将在1个月后发布,请您调整资源的发布时间,否则学生将看不到资源。</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!--<ul class="fl" id="copyResource2">
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
class AddColumnToMemberRole < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :member_roles, :multi_role, :integer, :default => 0
|
||||
|
||||
count = MemberRole.all.count / 30 + 2
|
||||
transaction do
|
||||
for i in 1 ... count do i
|
||||
MemberRole.page(i).per(30).each do |mr|
|
||||
if mr.role_id == 3
|
||||
mr.update_column('multi_role', 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
14
db/schema.rb
14
db/schema.rb
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20160720094503) do
|
||||
ActiveRecord::Schema.define(:version => 20160727065357) do
|
||||
|
||||
create_table "activities", :force => true do |t|
|
||||
t.integer "act_id", :null => false
|
||||
|
@ -395,6 +395,17 @@ ActiveRecord::Schema.define(:version => 20160720094503) do
|
|||
add_index "comments", ["author_id"], :name => "index_comments_on_author_id"
|
||||
add_index "comments", ["commented_id", "commented_type"], :name => "index_comments_on_commented_id_and_commented_type"
|
||||
|
||||
create_table "commits", :force => true do |t|
|
||||
t.integer "repository_id"
|
||||
t.string "version"
|
||||
t.string "committer"
|
||||
t.text "comments"
|
||||
t.datetime "committed_on"
|
||||
t.integer "project_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "contest_notifications", :force => true do |t|
|
||||
t.text "title"
|
||||
t.text "content"
|
||||
|
@ -1097,6 +1108,7 @@ ActiveRecord::Schema.define(:version => 20160720094503) do
|
|||
t.integer "member_id", :null => false
|
||||
t.integer "role_id", :null => false
|
||||
t.integer "inherited_from"
|
||||
t.integer "multi_role", :default => 0
|
||||
end
|
||||
|
||||
add_index "member_roles", ["member_id"], :name => "index_member_roles_on_member_id"
|
||||
|
|
Loading…
Reference in New Issue