Module: FootballDb

Defined in:
lib/footballdb.rb,
lib/footballdb.rb,
lib/footballdb/schema.rb,
lib/footballdb/version.rb,
lib/footballdb/models/stats/player_stat.rb

Overview

add backwards compatible n convenience namespace

move to forward.rb ?? - why? why not??

Defined Under Namespace

Modules: Model Classes: CreateDb

Constant Summary collapse

Models =
Model
VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details



30
31
32
# File 'lib/footballdb.rb', line 30

def self.banner
  "footballdb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end

.createObject



42
43
44
45
# File 'lib/footballdb.rb', line 42

def self.create
  CreateDb.new.up
  ## ConfDb::Model::Prop.create!( key: 'db.schema.football.version', value: VERSION )
end

.rootObject



34
35
36
# File 'lib/footballdb.rb', line 34

def self.root
  "#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}"
end

.test_data_pathObject



38
39
40
# File 'lib/footballdb.rb', line 38

def self.test_data_path
  "#{root}/test/data"
end