Module: Mdg::DB

Defined in:
lib/mdg/db.rb

Class Method Summary collapse

Class Method Details

.prepareObject



6
7
8
9
10
11
12
# File 'lib/mdg/db.rb', line 6

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

  connect_database database_path
  create_deeds_table_if_not_exists database_path
  create_timestamps_table_if_not_exists database_path
end