drop_database (lib/active_record/merbtasks.rb)

    # File lib/active_record/merbtasks.rb, line 55
      def drop_database(config)
        begin
          ActiveRecord::Base.establish_connection(config)
          ActiveRecord::Base.connection
        rescue
          puts "could not connect to #{config[:database]}, database not dropped"
        else
          case config[:adapter]
          when 'mysql'
            ActiveRecord::Base.connection.drop_database config[:database]
          when /^sqlite/
            FileUtils.rm(File.join(Merb.root, config[:database]))
          when 'postgresql'
            ActiveRecord::Base.clear_active_connections!
            `dropdb "#{config[:database]}"`
          end
        end
      end