* 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
8 lines
175 B
Ruby
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
|