public
Fork of keithpitty/bivouac
Description: Railscamp deployment tool
Homepage:
Clone URL: git://github.com/martinstannard/bivouac.git
bivouac / connection.example.rb
100644 13 lines (10 sloc) 0.224 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'active_record'
 
def connect_to_db
  ActiveRecord::Base.establish_connection(
    :adapter => "mysql",
    :host => "localhost",
    :username => "root",
    :password => "",
    :database => "bivouac"
  )
end