The definition of these tables are written as properties in the definitions of the User and Article model.

Since the default ORM in Merb is DataMapper, when you run rake db:automigrate, rake will check through your models (in app/models/) and create tables based on which properties exist in your model classes.

This is actually mentioned in the "Generate your first app" article on the wiki. Quote:

"Because DataMapper models define the schema mapping, DataMapper can figure out what your database should look like."



On 26 nov 2008, at 16.16, bartee wrote:


another newby question..

In the merb wiki "Generate your first app"

the line  rake db:automigrate

creates two tables.

Where did the definition of these two tables come from??

Is that part missing from the wiki ?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to