diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-01-22 00:12:29 -0500 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-01-22 00:12:29 -0500 |
commit | 2214237c3950445208635a332d520d6aa530c1de (patch) | |
tree | 13037ba04286f9d03d5fab5606aadd436b9719e8 /guides/code/getting_started/db/schema.rb | |
parent | 51b9def5bf108fb566e0d2293f49abb5aeb0add7 (diff) | |
download | rails-2214237c3950445208635a332d520d6aa530c1de.tar.gz rails-2214237c3950445208635a332d520d6aa530c1de.tar.bz2 rails-2214237c3950445208635a332d520d6aa530c1de.zip |
Re-do Getting Started application with Rails 4.
The sample application with the Getting Started Guide was very out of
date. I've re-done it on edge (as of 51b9def5bf108fb566e) so it should
be good to go with Rails 4. It's also in synch with what the guide
actually says.
Diffstat (limited to 'guides/code/getting_started/db/schema.rb')
-rw-r--r-- | guides/code/getting_started/db/schema.rb | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/guides/code/getting_started/db/schema.rb b/guides/code/getting_started/db/schema.rb index cfb56ca9b9..101fe712a1 100644 --- a/guides/code/getting_started/db/schema.rb +++ b/guides/code/getting_started/db/schema.rb @@ -9,34 +9,25 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # -# It's strongly recommended to check this file into your version control system. +# It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120420083127) do +ActiveRecord::Schema.define(version: 20130122045842) do - create_table "comments", :force => true do |t| + create_table "comments", force: true do |t| t.string "commenter" t.text "body" t.integer "post_id" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end - add_index "comments", ["post_id"], :name => "index_comments_on_post_id" + add_index "comments", ["post_id"], name: "index_comments_on_post_id" - create_table "posts", :force => true do |t| + create_table "posts", force: true do |t| t.string "title" t.text "text" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end - create_table "tags", :force => true do |t| - t.string "name" - t.integer "post_id" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - add_index "tags", ["post_id"], :name => "index_tags_on_post_id" - end |