Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Last active December 25, 2015 05:19
Show Gist options
  • Save fijimunkii/6923291 to your computer and use it in GitHub Desktop.
Save fijimunkii/6923291 to your computer and use it in GitHub Desktop.
ruby: manually set up active_record
require 'active_record'
ActiveRecord::Base.logger = Logger.new( STDOUT )
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
:host => "localhost",
:username => "EDIT ME",
:password => "",
:database => "EDIT ME"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment