Module: Recorder::DB

Defined in:
lib/recorder/db.rb

Class Method Summary collapse

Class Method Details

.prepareObject



10
11
12
13
14
15
# File 'lib/recorder/db.rb', line 10

def self.prepare
  database_path = File.join(ENV['HOME'], '.recorder','recorder.sqlite3')

  connect_database database_path
  create_table_if_not_exists database_path
end