Browse Source

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

master
Paul van Tilburg 11 years ago
parent
commit
46fd3f02d1
  1. 7
      config.ru

7
config.ru

@ -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