FactoryBot.define do factory :error_template do association :execution_environment, factory: :ruby name { "MyString" } signature { "MyString" } end end