Module: ConnpassToCalendar::DB

Defined in:
lib/connpass_to_calendar/db.rb

Class Method Summary collapse

Class Method Details

.prepareObject



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

def self.prepare
  database_path = File.join(ENV["HOME"], ".connpass_to_calendar", "db", "connpass_to_calendar.sqlite3")

  connect_database database_path
  create_database_path database_path
  create_envs_table
  create_events_table
end