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/022_create_configurations.rb | 37 lines | 1.1 KiB | text/x-ruby | RubyLexer |
class CreateConfigurations < ActiveRecord::Migration
def self.up
create_table :configurations do |t|
t.column :key, :string
t.column :value_type, :string
t.column :value, :string
t.timestamps
end
Configuration.reset_column_information
Configuration.create(:key => 'system.single_user_mode',
:value_type => 'boolean',
:value => 'false')
Configuration.create(:key => 'ui.front.title',
:value_type => 'string',
:value => 'Grader')
Configuration.create(:key => 'ui.front.welcome_message',
:value_type => 'string',
:value => 'Welcome!')
Configuration.create(:key => 'ui.show_score',
:value_type => 'boolean',
:value => 'true')
Configuration.create(:key => 'contest.time_limit',
:value_type => 'string',
:value => 'unlimited')
end
def self.down
drop_table :configurations
end
end