Show More
Commit Description:
problems sorted by update time
Commit Description:
problems sorted by update time
File last commit:
Show/Diff file:
Action:
db/migrate/20081012050458_add_contest_name_to_configuration.rb | 14 lines | 393 B | text/x-ruby | RubyLexer |
class AddContestNameToConfiguration < ActiveRecord::Migration
def self.up
# Configuration['contest.name']:
# it will be shown on the user header bar
Configuration.create(:key => 'contest.name',
:value_type => 'string',
:value => 'Grader')
end
def self.down
Configuration.find_by_key('contest.name').destroy
end
end