git-timecost/lib/timecost/db.rb

11 lines
212 B
Ruby

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