diff --git a/app/models/case_log.rb b/app/models/case_log.rb index 11b22da07..ae2beb675 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -33,6 +33,7 @@ class CaseLog < ApplicationRecord include Validations::SoftValidations include Constants::CaseLog include Constants::IncomeRanges + include Constants::Organisation has_paper_trail diff --git a/app/models/constants/case_log.rb b/app/models/constants/case_log.rb index 9efd889fd..3a2593314 100644 --- a/app/models/constants/case_log.rb +++ b/app/models/constants/case_log.rb @@ -1125,9 +1125,4 @@ module Constants::CaseLog "Other"].freeze OPTIONAL_FIELDS = %w[postcode_known la_known first_time_property_let_as_social_housing tenant_code propcode].freeze - - PROVIDER_TYPE = { - "LA" => 1, - "PRP" => 2, - }.freeze end diff --git a/db/schema.rb b/db/schema.rb index b64253b2c..3d002ae96 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -20,8 +20,8 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false t.integer "second_factor_attempts_count", default: 0 t.string "encrypted_otp_secret_key" t.string "encrypted_otp_secret_key_iv" @@ -35,8 +35,8 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do create_table "case_logs", force: :cascade do |t| t.integer "status", default: 0 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false t.string "tenant_code" t.integer "age1" t.string "sex1" @@ -206,8 +206,8 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do t.boolean "holds_own_stock" t.string "other_stock_owners" t.string "managing_agents" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false t.boolean "active" t.integer "old_association_type" t.string "software_supplier_id" @@ -233,8 +233,8 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false t.string "name" t.bigint "organisation_id" t.integer "sign_in_count", default: 0, null: false @@ -256,7 +256,7 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do t.string "event", null: false t.string "whodunnit" t.text "object" - t.datetime "created_at" + t.datetime "created_at", precision: 6 t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id" end