Use the correct module namespace and also create/migrate the DB when needed.
This commit is contained in:
parent
25ba972889
commit
46fd3f02d1
|
@ -4,8 +4,9 @@ $LOAD_PATH.unshift "/home/paul/Projects/anne-survey/lib"
|
|||
|
||||
require "anne-survey"
|
||||
|
||||
Camping::Models::Base.establish_connection( :adapter => 'sqlite3',
|
||||
Anne::Models::Base.establish_connection( :adapter => 'sqlite3',
|
||||
:database => 'db/survey.db',
|
||||
:timeout => 10000 )
|
||||
Anne.create
|
||||
|
||||
run Anne
|
||||
|
|
Reference in New Issue