Show More
Commit Description:
added message hiding for admin in msg console...
Commit Description:
added message hiding for admin in msg console git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@371 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
db/migrate/20090202101806_add_test_request_early_timeout_to_config.rb | 15 lines | 527 B | text/x-ruby | RubyLexer |
class AddTestRequestEarlyTimeoutToConfig < ActiveRecord::Migration
def self.up
# If Configuration['contest.test_request.early_timeout'] is true
# the user will not be able to use test request at 30 minutes
# before the contest ends.
Configuration.create(:key => 'contest.test_request.early_timeout',
:value_type => 'boolean',
:value => 'false')
end
def self.down
Configuration.find_by_key('contest.test_request.early_timeout').destroy
end
end