git-timecost/lib/timecost/db.rb

12 lines
212 B
Ruby
Raw Permalink Normal View History

require 'active_record'
ActiveRecord::Base.logger = Logger.new(STDERR)
#ActiveRecord::Base.colorize_logging = false
ActiveRecord::Base.establish_connection(
adapter: "sqlite3",
database: ":memory:"
)