Show More
Commit Description:
started cleaning up tests, fixed fixtures loading error, removed error when contest time limit is uninitialized
Commit Description:
started cleaning up tests, fixed fixtures loading error, removed error when contest time limit is uninitialized
File last commit:
Show/Diff file:
Action:
db/migrate/020_add_graders_right_to_admin_role.rb | 17 lines | 484 B | text/x-ruby | RubyLexer |
class AddGradersRightToAdminRole < ActiveRecord::Migration
def self.up
admin_role = Role.find_by_name('admin')
graders_right = Right.create(:name => 'graders_admin',
:controller => 'graders',
:action => 'all')
admin_role.rights << graders_right;
admin_role.save
end
def self.down
graders_right = Right.find_by_name('graders_admin')
graders_right.destroy if graders_right
end
end