lib/sportdb.rb in sportdb-0.6.0 vs lib/sportdb.rb in sportdb-0.7.0

- old
+ new

@@ -1,9 +1,8 @@ ### # NB: for local testing run like: # -# 1.8.x: ruby -Ilib -rrubygems lib/sportdb.rb # 1.9.x: ruby -Ilib lib/sportdb.rb # core and stlibs require 'yaml' @@ -14,18 +13,16 @@ require 'erb' # rubygems require 'active_record' ## todo: add sqlite3? etc. +require 'worlddb' # our own code - -module SportDB # forward reference; more to come later -end - +require 'sportdb/models/forward' require 'sportdb/models/badge' require 'sportdb/models/city' require 'sportdb/models/country' require 'sportdb/models/event' require 'sportdb/models/event_team' @@ -98,13 +95,9 @@ Event.delete_all EventTeam.delete_all Group.delete_all GroupTeam.delete_all Round.delete_all - Prop.delete_all - Country.delete_all - Region.delete_all - City.delete_all Badge.delete_all League.delete_all Season.delete_all end \ No newline at end of file