Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Cleaned up the DataMapper section
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Schneider <chris@christopher-schneider.com>
  • Loading branch information
jdp authored and cschneid committed Mar 23, 2009
1 parent 82f79d6 commit f2e97f1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions book/Models.markdown
Expand Up @@ -21,13 +21,9 @@ show started, and this example will include a 'Post' model.
property :body, Text property :body, Text
property :created_at, DateTime property :created_at, DateTime
end end


To automatically create the table for the 'Post' model if you haven't already, # automatically create the post table
add a task to your rakefile to migrate your database: Post.auto_migrate! unless Post.table_exists?

task :migrate do
DataMapper.auto_migrate!
end


Once that is all well and good, you can actually start developing your Once that is all well and good, you can actually start developing your
application! application!
Expand Down

0 comments on commit f2e97f1

Please sign in to comment.