Show More
Commit Description:
added quick new problem...
Commit Description:
added quick new problem
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@369 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
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
|
|
r162 | 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 | ||||