Class: Database

Inherits:
Object
  • Object
show all
Defined in:
lib/database.rb

Overview

Database managment for scheduled issues

Class Method Summary collapse

Class Method Details

.prepare_databaseObject



25
26
27
28
29
30
31
32
# File 'lib/database.rb', line 25

def self.prepare_database
  ActiveRecord::Base.establish_connection(
    adapter: "sqlite3",
    database: database_path
  )

  ActiveRecord::Base.connection.execute(create_table_sql)
end