-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathchoices.rb
More file actions
28 lines (27 loc) · 769 Bytes
/
choices.rb
File metadata and controls
28 lines (27 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# == Schema Information
#
# Table name: choices
#
# id :integer not null, primary key
# answer :text(65535) not null
# feedback :text(65535)
# position :integer not null
# value :float(24) not null
# created_at :datetime
# updated_at :datetime
# multiple_choice_prompt_id :integer not null
#
# Indexes
#
# index_choices_on_multiple_choice_prompt_id (multiple_choice_prompt_id)
#
# Foreign Keys
#
# choices_multiple_choice_prompt_id_fk (multiple_choice_prompt_id => multiple_choice_prompts.id)
#
FactoryBot.define do
factory :choice do
answer { 'A choice' }
value { 0.0 }
end
end