Show More
Commit Description:
fixed error when submitted file is nil...
Commit Description:
fixed error when submitted file is nil git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@366 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
db/migrate/20081205172258_add_emailing_info_on_config_option.rb | 18 lines | 781 B | text/x-ruby | RubyLexer |
class AddEmailingInfoOnConfigOption < ActiveRecord::Migration
def self.up
# If Configuration['system.online_registration'] is true, the
# system allows online registration, and will use these
# information for sending confirmation emails.
Configuration.create(:key => 'system.online_registration.smtp',
:value_type => 'string',
:value => 'smtp.somehost.com')
Configuration.create(:key => 'system.online_registration.from',
:value_type => 'string',
:value => 'your.email@address')
end
def self.down
Configuration.find_by_key("system.online_registration.smtp").destroy
Configuration.find_by_key("system.online_registration.from").destroy
end
end