Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mention database mapping in getting started guide

  • Loading branch information...
commit c058a773b89b1bf4103f9bd4910743f60f238792 1 parent 026e0d1
@oscardelben oscardelben authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 guides/source/getting_started.textile
View
5 guides/source/getting_started.textile
@@ -404,7 +404,10 @@ $ rails generate model Post title:string text:text
With that command we told Rails that we want a +Post+ model, which in
turn should have a title attribute of type string, and a text attribute
-of type text. Rails in turn responded by creating a bunch of files. For
+of type text. Those attributes are automatically added to the +posts+
+table in the database and mapped to the +Post+ model.
+
+Rails in turn responded by creating a bunch of files. For
now, we're only interested in +app/models/post.rb+ and
+db/migrate/20120419084633_create_posts.rb+. The latter is responsible
for creating the database structure, which is what we'll look at next.
Please sign in to comment.
Something went wrong with that request. Please try again.