Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
merged
Commit Description:
merged
class CreateGroups < ActiveRecord :: Migration
def change
create_table :groups do | t |
t . string :name
t . string :description
end
create_join_table :groups , :users do | t |
# t.index [:group_id, :user_id]
t . index [ :user_id , :group_id ]
end
create_join_table :problems , :groups do | t |
# t.index [:problem_id, :group_id]
t . index [ :group_id , :problem_id ]
end
reversible do | change |
change . up do
GraderConfiguration . where ( key : 'system.use_problem_group' ) . first_or_create ( value_type : 'boolean' , value : 'false' ,
description : 'If true, available problem to the user will be only ones associated with the group of the user' );
end
change . down do
GraderConfiguration . where ( key : 'system.use_problem_group' ) . destroy_all
end
end
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings