xavierlacot / joli.js

joli.js is an Activerecord-like javascript ORM, particularly suited for being used in the Appcelerator Titanium Mobile framework.
MIT License
267 stars 60 forks source link

New setup - Install Database #23

Closed edwardforduk closed 12 years ago

edwardforduk commented 12 years ago

Hopefully this is a simple question...

I have included the library as suggested but keep getting the error that my user table cannot be found. The SQL file in the iPhone simulator is also zero bytes.

It looks like the db file might get created but nothing else happens.

Are there any migration steps required to build the app for the first time?

many thanks Ed

xavierlacot commented 12 years ago

Hi Ed,

Did you call the method joli.models.initialize(), as stated in the documentation? This step creates the tables if they are not existing.

Cheers,