Newer
Older
dmpopidor / spec / factories / annotations.rb
@Bodacious Bodacious on 25 Jul 2018 424 bytes Add extra validations for all models
# == Schema Information
#
# Table name: annotations
#
#  id          :integer          not null, primary key
#  question_id :integer
#  org_id      :integer
#  text        :text
#  type        :integer          default(0), not null
#  created_at  :datetime
#  updated_at  :datetime
#

FactoryBot.define do
  factory :annotation do
    question
    org
    text { Faker::Lorem.paragraph }
    type { [0,1].sample }
  end
end