diff options
author | Konstantin Shabanov <etehtsea@gmail.com> | 2012-09-07 22:27:08 +0400 |
---|---|---|
committer | Konstantin Shabanov <etehtsea@gmail.com> | 2012-09-08 11:09:49 +0400 |
commit | b485b8a06626be3a1b8a2037092a9dda1b28e8a4 (patch) | |
tree | 139444ad3ba8d37f2b28c3c8e66f5a97261cd0ef /guides | |
parent | f415475621c79cbc2d93e1ecf10805a4100a5d43 (diff) | |
download | rails-b485b8a06626be3a1b8a2037092a9dda1b28e8a4.tar.gz rails-b485b8a06626be3a1b8a2037092a9dda1b28e8a4.tar.bz2 rails-b485b8a06626be3a1b8a2037092a9dda1b28e8a4.zip |
Dump schema using new style hash
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/migrations.textile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/migrations.textile b/guides/source/migrations.textile index a7de21b754..587be269f7 100644 --- a/guides/source/migrations.textile +++ b/guides/source/migrations.textile @@ -912,14 +912,14 @@ If +:ruby+ is selected then the schema is stored in +db/schema.rb+. If you look at this file you'll find that it looks an awful lot like one very big migration: <ruby> -ActiveRecord::Schema.define(:version => 20080906171750) do - create_table "authors", :force => true do |t| +ActiveRecord::Schema.define(version: 20080906171750) do + create_table "authors", force: true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" end - create_table "products", :force => true do |t| + create_table "products", force: true do |t| t.string "name" t.text "description" t.datetime "created_at" |