Newer
Older
dmpopidor / spec / factories / annotations.rb
@Quentin SONREL Quentin SONREL on 20 Jan 2020 651 bytes Added structured schema/answers models and tables
# == 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
#  versionable_id :string(36)
#
# Indexes
#
#  annotations_org_id_idx               (org_id)
#  annotations_question_id_idx          (question_id)
#  index_annotations_on_versionable_id  (versionable_id)
#

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