diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-20 10:43:50 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-20 10:43:50 +0200 |
commit | f6d5036dd620da48624ce32494f63aa4221b05d5 (patch) | |
tree | b023a6730c5dffee1a5724d7c026bfa369efeccf /guides/code/getting_started/db/migrate | |
parent | 0d5a7ad84ddbcb4de7c327e39a7747e00b0cd89f (diff) | |
download | rails-f6d5036dd620da48624ce32494f63aa4221b05d5.tar.gz rails-f6d5036dd620da48624ce32494f63aa4221b05d5.tar.bz2 rails-f6d5036dd620da48624ce32494f63aa4221b05d5.zip |
Adapt "Getting started guide" code sample
Diffstat (limited to 'guides/code/getting_started/db/migrate')
-rw-r--r-- | guides/code/getting_started/db/migrate/20120420083127_create_posts.rb (renamed from guides/code/getting_started/db/migrate/20110901012504_create_posts.rb) | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb b/guides/code/getting_started/db/migrate/20120420083127_create_posts.rb index d45a961523..602bef31ab 100644 --- a/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +++ b/guides/code/getting_started/db/migrate/20120420083127_create_posts.rb @@ -1,9 +1,8 @@ class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| - t.string :name t.string :title - t.text :content + t.text :text t.timestamps end |