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
.banner ⇒ Object
30
31
32
|
# File 'lib/footballdb.rb', line 30
def self.banner
"footballdb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end
|
.create ⇒ Object
42
43
44
45
|
# File 'lib/footballdb.rb', line 42
def self.create
CreateDb.new.up
end
|
.root ⇒ Object
34
35
36
|
# File 'lib/footballdb.rb', line 34
def self.root
"#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}"
end
|
.test_data_path ⇒ Object
38
39
40
|
# File 'lib/footballdb.rb', line 38
def self.test_data_path
"#{root}/test/data"
end
|