Skip to content

Commit

Permalink
Merge pull request #18 from jyrkidn/hotfix/readme-fixes
Browse files Browse the repository at this point in the history
Use correct model foreign key definitions
  • Loading branch information
Naoray committed Jul 9, 2020
2 parents 427143d + 537ab3b commit 724be99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Refer to [Blueprint's Basic Usage](https://github.com/laravel-shift/blueprint#ba
# draft.yaml
models:
Post:
author_id: id:user
author_id: id foreign:users
title: string:400
content: longtext
published_at: nullable timestamp
relationships:
HasMany: Comment

Comment:
post_id:i
post_id: id foreign
content: longtext
published_at: nullable timestamp
```
Expand Down

0 comments on commit 724be99

Please sign in to comment.