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/20081204081043_add_more_options_to_configurations.rb | 31 lines | 1.1 KiB | text/x-ruby | RubyLexer |
class AddMoreOptionsToConfigurations < ActiveRecord::Migration
def self.up
# If the server is in contest mode and
# Configuration['contest.multisites'] is true
# the menu for site administrator is shown.
Configuration.create(:key => 'contest.multisites',
:value_type => 'boolean',
:value => 'false')
# If Configuration['system.online_registration'] is true,
# the registration menu would appear
Configuration.create(:key => 'system.online_registration',
:value_type => 'boolean',
:value => 'false')
# If Configuration['system.user_setting_enabled'] is true,
# users can change their settings
Configuration.create(:key => 'system.user_setting_enabled',
:value_type => 'boolean',
:value => 'true')
end
def self.down
Configuration.find_by_key('contest.multisites').destroy
Configuration.find_by_key('system.online_registration').destroy
Configuration.find_by_key('system.user_setting_enabled').destroy
end
end