Use the correct module namespace and also create/migrate the DB when needed.

This commit is contained in:
Paul van Tilburg 2011-02-15 18:27:30 +01:00
parent 25ba972889
commit 46fd3f02d1
1 changed files with 4 additions and 3 deletions

View File

@ -4,8 +4,9 @@ $LOAD_PATH.unshift "/home/paul/Projects/anne-survey/lib"
require "anne-survey"
Camping::Models::Base.establish_connection( :adapter => 'sqlite3',
:database => 'db/survey.db',
:timeout => 10000 )
Anne::Models::Base.establish_connection( :adapter => 'sqlite3',
:database => 'db/survey.db',
:timeout => 10000 )
Anne.create
run Anne