diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-09-14 13:09:14 +0100 |
---|---|---|
committer | Frederick Cheung <frederick.cheung@gmail.com> | 2008-09-14 13:10:59 +0100 |
commit | dd54f412c13971ed4e87e440cf1cebb7c64dfd78 (patch) | |
tree | f28dc29303d9d740e8df9c0f22d2cd3f90a5b72d /railties/doc | |
parent | f6c0f688680778a7bf693a69ffee021e1122b01c (diff) | |
download | rails-dd54f412c13971ed4e87e440cf1cebb7c64dfd78.tar.gz rails-dd54f412c13971ed4e87e440cf1cebb7c64dfd78.tar.bz2 rails-dd54f412c13971ed4e87e440cf1cebb7c64dfd78.zip |
Use a better example
Diffstat (limited to 'railties/doc')
-rw-r--r-- | railties/doc/guides/migrations/writing_a_migration.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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`. |