RailsのFixtureに複数行のデータを入れたい場合

複数行のデータを入れたい場合

パイプ(|)を使う

fixtures/projects.yml
big_project:
  name: big_project
  due_date: 2018-05-07
  description: |
    This is a really big project that
    will take 3 years to end.
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.