Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use a better example

  • Loading branch information...
commit dd54f412c13971ed4e87e440cf1cebb7c64dfd78 1 parent f6c0f68
@fcheung fcheung authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/doc/guides/migrations/writing_a_migration.txt
View
4 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`.
Please sign in to comment.
Something went wrong with that request. Please try again.