Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add documentation for URL connection strings.

  • Loading branch information...
commit 1f427b534199399545f90fd0895d62c005247501 1 parent 16249fe
@glenngillen glenngillen authored tenderlove committed
View
6 activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
@@ -46,6 +46,12 @@ def connection
# "database" => "path/to/dbfile"
# )
#
+ # Or a URL:
+ #
+ # ActiverRecord::Base.establish_connection(
@vijaydev Collaborator

Typo!

@spastorino Owner

@vijaydev please pull request :)

@vijaydev Collaborator

Here you go #2188 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ # "postgres://myuser:mypass@localhost/somedatabase"
+ # )
+ #
# The exceptions AdapterNotSpecified, AdapterNotFound and ArgumentError
# may be returned on an error.
def self.establish_connection(spec = nil)
Please sign in to comment.
Something went wrong with that request. Please try again.