Skip to content

Instantly share code, notes, and snippets.

View brundage's full-sized avatar
🚲
Unscrambling eggs

Dean Brundage brundage

🚲
Unscrambling eggs
View GitHub Profile
@brundage
brundage / gist:1e6734b3d5bae98676ce
Last active November 18, 2016 05:33 — forked from unnitallman/gist:944011
sqlite with activerecord outside rails
require 'active_record'
ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.colorize_logging = false
ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)