Browse Source

feat: update db field

pull/1123/head
natdeanlewissoftwire 4 years ago
parent
commit
8d74bd6e27
  1. 2
      app/models/form/sales/questions/buyer_still_serving.rb
  2. 7
      db/migrate/20221223151033_add_still_serving_to_sales.rb
  3. 9
      db/schema.rb

2
app/models/form/sales/questions/buyer_still_serving.rb

@ -1,7 +1,7 @@
class Form::Sales::Questions::BuyerStillServing < ::Form::Question
def initialize(id, hsh, page)
super
@id = "hhregres"
@id = "hhregresstill"
@check_answer_label = "Are they still serving in the UK armed forces?"
@header = "Is the buyer still serving in the UK armed forces?"
@type = "radio"

7
db/migrate/20221223151033_add_still_serving_to_sales.rb

@ -0,0 +1,7 @@
class AddStillServingToSales < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :hhregresstill, :integer
end
end
end

9
db/schema.rb

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2022_12_23_134818) do
ActiveRecord::Schema[7.0].define(version: 2022_12_23_151033) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -415,13 +415,14 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_23_134818) do
t.integer "ecstat4"
t.integer "ecstat5"
t.integer "ecstat6"
t.integer "disabled"
t.integer "hhregres"
t.integer "wheel_value_check"
t.integer "pregyrha"
t.integer "pregla"
t.integer "pregghb"
t.integer "pregother"
t.integer "disabled"
t.integer "wheel_value_check"
t.integer "hhregres"
t.integer "hhregresstill"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"
t.index ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id"
t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"

Loading…
Cancel
Save