Changeset 1130
- Timestamp:
- 12/24/07 04:33:06 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/merb_sequel/lib/merb/orms/sequel/connection.rb
r1095 r1130 29 29 30 30 if File.exists?(config_file) 31 puts " Connecting to database..."31 puts "#{Time.now.httpdate}: Connecting to the '#{config[:adapter]}' database '#{config[:hosts]}' ..." 32 32 connection = ::Sequel.connect(config_options(config)) 33 33 MERB_LOGGER.error("Connection Error: #{e}") unless connection 34 34 else 35 35 copy_sample_config 36 puts " No database.yml file found in #{MERB_ROOT}/config."36 puts "#{Time.now.httpdate}: No database.yml file found in #{MERB_ROOT}/config." 37 37 puts "A sample file was created called config/database.sample.yml for you to copy and edit." 38 38 exit(1)
