Browse Source

Add sheltered accom field (#568)

pull/619/head
baarkerlounger 3 years ago committed by baarkerlounger
parent
commit
e6f1672fe4
  1. 5
      db/migrate/20220511114334_add_shelteredaccom_case_logs.rb
  2. 3
      db/schema.rb
  3. 1
      spec/fixtures/exports/case_logs.xml

5
db/migrate/20220511114334_add_shelteredaccom_case_logs.rb

@ -0,0 +1,5 @@
class AddShelteredaccomCaseLogs < ActiveRecord::Migration[7.0]
def change
add_column :case_logs, :shelteredaccom, :integer
end
end

3
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: 2022_05_10_134721) do ActiveRecord::Schema[7.0].define(version: 2022_05_11_114334) 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"
@ -223,6 +223,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_05_10_134721) do
t.bigint "created_by_id" t.bigint "created_by_id"
t.integer "illness_type_0" t.integer "illness_type_0"
t.integer "tshortfall_known" t.integer "tshortfall_known"
t.integer "shelteredaccom"
t.index ["created_by_id"], name: "index_case_logs_on_created_by_id" t.index ["created_by_id"], name: "index_case_logs_on_created_by_id"
t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id" t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id"
t.index ["old_id"], name: "index_case_logs_on_old_id", unique: true t.index ["old_id"], name: "index_case_logs_on_old_id", unique: true

1
spec/fixtures/exports/case_logs.xml vendored

@ -165,6 +165,7 @@
<created_by_id>{created_by_id}</created_by_id> <created_by_id>{created_by_id}</created_by_id>
<illness_type_0/> <illness_type_0/>
<tshortfall_known>0</tshortfall_known> <tshortfall_known>0</tshortfall_known>
<shelteredaccom/>
<providertype>1</providertype> <providertype>1</providertype>
</form> </form>
</forms> </forms>

Loading…
Cancel
Save