4 changed files with 25 additions and 2 deletions
@ -0,0 +1,16 @@ |
|||||||
|
class Form::Sales::Questions::StaircaseSale < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "staircasesale" |
||||||
|
@check_answer_label = "Part of a back-to-back staircasing transaction" |
||||||
|
@header = "Is this transaction part of a back-to-back staircasing transaction to facilitate sale of the home on the open market?" |
||||||
|
@type = "radio" |
||||||
|
@answer_options = ANSWER_OPTIONS |
||||||
|
end |
||||||
|
|
||||||
|
ANSWER_OPTIONS = { |
||||||
|
"1" => { "value" => "Yes" }, |
||||||
|
"2" => { "value" => "No" }, |
||||||
|
"3" => { "value" => "Don't know" }, |
||||||
|
}.freeze |
||||||
|
end |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
class AddStaircasesaleToSalesLogs < ActiveRecord::Migration[7.0] |
||||||
|
def change |
||||||
|
add_column :sales_logs, :staircasesale, :integer |
||||||
|
end |
||||||
|
end |
||||||
Loading…
Reference in new issue