staging/lib/vcap/staging/plugin/rails3/database_support.rb
# Prepares a database.yml file for the app, if needed.
# Returns the service binding that was used for the 'production' db entry.
Prepares a database.yml file for the app, if needed.
Returns the service binding that was used for the 'production' db entry.
Prepares a database . yml file for the app if needed . Returns the service binding that was used for the ' production ' db entry .
def known_database?(binding)
    if label = binding[:label]
      case label
      when /^mysql/
        binding
      when /^postgresql/
        binding
      end
    end
  end
def known_database? ( binding ) if label = binding [ :label ] case label when / ^mysql / binding when / ^postgresql / binding end end end
Prepares a database.yml file for the app, if needed.
Prepares a database . yml file for the app if needed .
binding