docbrown/spec/factories/email_messages.rb
rhymes 5ba8c44b05
[deploy] Add missing foreign keys to ahoy_messages and articles (#10321)
* Add FK between ahoy_messages and feedback_messages

* Add FKs between articles.second_user_id, articles.third_user_id and users

* Fix associations and specs

* Add more validations

* Remove FKs to articles.second_user_id and .third_user_id as they are about to be removed
2020-09-16 19:47:03 +02:00

8 lines
175 B
Ruby

FactoryBot.define do
factory :email_message do
to { Faker::Internet.email }
subject { Faker::Lorem.sentence }
content { Faker::Lorem.paragraph }
end
end