Show More
Commit Description:
added option for Apapche X-Sendfile...
Commit Description:
added option for Apapche X-Sendfile git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@370 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
db/migrate/036_add_mode_to_configurations.rb | 17 lines | 482 B | text/x-ruby | RubyLexer |
class AddModeToConfigurations < ActiveRecord::Migration
def self.up
# Configuration['system.mode']:
# * 'standard' mode
# * 'contest' mode (check site start time/stop time)
# * 'analysis' mode (show results, no new submissions)
Configuration.create(:key => 'system.mode',
:value_type => 'string',
:value => 'standard')
end
def self.down
Configuration.find_by_key('system.mode').destroy
end
end