Slide 19
Slide 19 text
例題(Gistみたいなやつ)で生成する初期データの例
ユーザー情報 (認証情報を含む)
ユーザーが投稿したgistの情報
// users
[
{"id":1,"name":"tagomoris","password_digest":"..."},
{"id":2,"name":"941","password_digest":"..."},
...
]
// gists
[
{"id":"af3aece0d","user_id":1,"title":"...","content":"...","is_private":true,"created_at":"..."},
{"id":"cc6125c19","user_id":2,"title":"...","content":"...","is_private":false,"created_at":"..."},
...
]
faker系のライブラリを使うなどして作りましょう