Skip to content

Commit

Permalink
Update Getting Started guide to reflect foreign key in migration [ci …
Browse files Browse the repository at this point in the history
…skip]
  • Loading branch information
Jennifer Wollesen committed Dec 31, 2014
1 parent 070f556 commit 0591e85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guides/source/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,7 @@ class CreateComments < ActiveRecord::Migration

t.timestamps null: false
end
add_foreign_key :comments, :articles
end
end
```
Expand All @@ -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) ========================================
```

Expand Down

0 comments on commit 0591e85

Please sign in to comment.