Permalink
Browse files

Use a better example

  • Loading branch information...
1 parent f6c0f68 commit dd54f412c13971ed4e87e440cf1cebb7c64dfd78 @fcheung fcheung committed Sep 14, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/doc/guides/migrations/writing_a_migration.txt
@@ -36,11 +36,11 @@ By default `create_table` will create a primary key called `id`. You can change
[source, ruby]
---------------------
-create_table :products, :options => "ENGINE=InnoDB" do |t|
+create_table :products, :options => "ENGINE=BLACKHOLE" do |t|
t.string :name, :null => false
end
---------------------
-Will append `ENGINE=InnoDB` to the sql used to create the table (this is Rails' default when using MySQL).
+Will append `ENGINE=BLACKHOLE` to the sql used to create the table (when using MySQL the default is "ENGINE=InnoDB").
The types Active Record supports are `:primary_key`, `:string`, `:text`, `:integer`, `:float`, `:decimal`, `:datetime`, `:timestamp`, `:time`, `:date`, `:binary`, `:boolean`.

0 comments on commit dd54f41

Please sign in to comment.