Newer
Older
dmpopidor / spec / factories / question_options.rb
@Quentin SONREL Quentin SONREL on 20 Jan 2020 483 bytes Added structured schema/answers models and tables
# == Schema Information
#
# Table name: question_options
#
#  id          :integer          not null, primary key
#  question_id :integer
#  text        :string
#  number      :integer
#  is_default  :boolean
#  created_at  :datetime
#  updated_at  :datetime
#
# Indexes
#
#  question_options_question_id_idx  (question_id)
#

FactoryBot.define do
  factory :question_option do
    question
    text { Faker::Lorem.sentence }
    sequence(:number)
    is_default { false }
  end
end