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
References:
File last commit:
Show/Diff file:
Action:
db/migrate/20081012050458_add_contest_name_to_configuration.rb
| 14 lines
| 393 B
| text/x-ruby
| RubyLexer
|
|
r141 | 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 | ||||