From dd54f412c13971ed4e87e440cf1cebb7c64dfd78 Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Sun, 14 Sep 2008 13:09:14 +0100 Subject: Use a better example --- railties/doc/guides/migrations/writing_a_migration.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/doc/guides') diff --git a/railties/doc/guides/migrations/writing_a_migration.txt b/railties/doc/guides/migrations/writing_a_migration.txt index 0ab5397a84..2a2b6217d8 100644 --- a/railties/doc/guides/migrations/writing_a_migration.txt +++ b/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`. -- cgit v1.2.3