Skip to content

Commit

Permalink
Add documentation for URL connection strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
glenngillen authored and tenderlove committed Jul 20, 2011
1 parent 16249fe commit 1f427b5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ def connection
# "database" => "path/to/dbfile"
# )
#
# Or a URL:
#
# ActiverRecord::Base.establish_connection(
# "postgres://myuser:mypass@localhost/somedatabase"
# )
#
# The exceptions AdapterNotSpecified, AdapterNotFound and ArgumentError
# may be returned on an error.
def self.establish_connection(spec = nil)
Expand Down

0 comments on commit 1f427b5

Please sign in to comment.