Show More
Commit Description:
added codejom controller, show status in public
Commit Description:
added codejom controller, show status in public
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