Read about how to define associations in factories.
https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#associations