From 0591e852d281f3d950dc27ba96cfd1e1a047be76 Mon Sep 17 00:00:00 2001 From: Jennifer Wollesen Date: Tue, 30 Dec 2014 22:41:54 -0700 Subject: Update Getting Started guide to reflect foreign key in migration [ci skip] --- guides/source/getting_started.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'guides/source/getting_started.md') diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index ff6e0db480..bb80063f2b 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -1544,6 +1544,7 @@ class CreateComments < ActiveRecord::Migration t.timestamps null: false end + add_foreign_key :comments, :articles end end ``` @@ -1563,6 +1564,8 @@ run against the current database, so in this case you will just see: == CreateComments: migrating ================================================= -- create_table(:comments) -> 0.0115s +-- add_foreign_key(:comments, :articles) + -> 0.0000s == CreateComments: migrated (0.0119s) ======================================== ``` -- cgit v1.2.3