diff options
-rw-r--r-- | guides/source/getting_started.md | 3 |
1 files changed, 3 insertions, 0 deletions
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) ======================================== ``` |