diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-08 04:16:58 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-08 04:16:58 -0700 |
commit | 63730271127f4b1540fcd469d42b46018bd13ab4 (patch) | |
tree | e46550a6c414eefd0731e0158ce7eddb35e7772c /guides/source | |
parent | 68ca54959edeb7eb5cfe1707bd466476f106b39f (diff) | |
parent | b485b8a06626be3a1b8a2037092a9dda1b28e8a4 (diff) | |
download | rails-63730271127f4b1540fcd469d42b46018bd13ab4.tar.gz rails-63730271127f4b1540fcd469d42b46018bd13ab4.tar.bz2 rails-63730271127f4b1540fcd469d42b46018bd13ab4.zip |
Merge pull request #7566 from etehtsea/schema-new-hash
Dump schema using new style hash
Diffstat (limited to 'guides/source')
-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" |