Browse Source

Add soft validation columns

pull/2256/head
Kat 2 years ago
parent
commit
e44b540af8
  1. 13
      db/migrate/20240319122706_add_relationship_value_check_fields.rb
  2. 6
      db/schema.rb

13
db/migrate/20240319122706_add_relationship_value_check_fields.rb

@ -0,0 +1,13 @@
class AddRelationshipValueCheckFields < ActiveRecord::Migration[7.0]
def change
change_table :lettings_logs, bulk: true do |t|
t.column :partner_under_16_value_check, :integer
t.column :multiple_partners_value_check, :integer
end
change_table :sales_logs, bulk: true do |t|
t.column :partner_under_16_value_check, :integer
t.column :multiple_partners_value_check, :integer
end
end
end

6
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2024_03_11_102706) do ActiveRecord::Schema[7.0].define(version: 2024_03_19_122706) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -312,6 +312,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_11_102706) do
t.string "postcode_full_input" t.string "postcode_full_input"
t.integer "address_search_value_check" t.integer "address_search_value_check"
t.string "uprn_selection" t.string "uprn_selection"
t.integer "partner_under_16_value_check"
t.integer "multiple_partners_value_check"
t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id" t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id" t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id"
t.index ["location_id"], name: "index_lettings_logs_on_location_id" t.index ["location_id"], name: "index_lettings_logs_on_location_id"
@ -669,6 +671,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_11_102706) do
t.string "postcode_full_input" t.string "postcode_full_input"
t.integer "address_search_value_check" t.integer "address_search_value_check"
t.string "uprn_selection" t.string "uprn_selection"
t.integer "partner_under_16_value_check"
t.integer "multiple_partners_value_check"
t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id" 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 ["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 ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id"

Loading…
Cancel
Save