staging/lib/vcap/staging/plugin/rails3/database_support.rb
def configure_database
    bindings = bound_databases
    case bindings.size
    when 0
      # nothing to do
    when 1
      write_database_yaml(bindings.first)
    else
      configure_multiple_databases(bindings)
    end
  end
# 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 configure_database
    bindings = bound_databases
    case bindings.size
    when 0
    when 1
      write_database_yaml(bindings.first)
    else
      configure_multiple_databases(bindings)
    end
  end
def configure_database bindings = bound_databases case bindings . size when 0 when 1 write_database_yaml ( bindings . first ) else configure_multiple_databases ( bindings ) end end
Prepares a database.yml file for the app, if needed.
Prepares a database . yml file for the app if needed .
# nothing to do