Browse Source

db:update

pull/1296/head
natdeanlewissoftwire 3 years ago
parent
commit
67cbd3485a
  1. 3
      app/models/form/sales/questions/living_before_purchase.rb
  2. 5
      db/migrate/20230213140932_add_proplen_asked_to_sales_log.rb
  3. 4
      db/schema.rb

3
app/models/form/sales/questions/living_before_purchase.rb

@ -15,9 +15,6 @@ class Form::Sales::Questions::LivingBeforePurchase < ::Form::Question
{
"proplen_asked" => 0,
},
{
"proplen_asked" => 1,
},
],
}
end

5
db/migrate/20230213140932_add_proplen_asked_to_sales_log.rb

@ -0,0 +1,5 @@
class AddProplenAskedToSalesLog < ActiveRecord::Migration[7.0]
def change
add_column :sales_logs, :proplen_asked, :integer
end
end

4
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: 2023_02_03_174815) do
ActiveRecord::Schema[7.0].define(version: 2023_02_13_140932) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -524,7 +524,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_02_03_174815) do
t.integer "details_known_5"
t.integer "details_known_6"
t.integer "saledate_check"
t.integer "staircasesale"
t.integer "prevshared"
t.integer "proplen_asked"
t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"
t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"

Loading…
Cancel
Save