Browse Source

Remove condition_effects_prefer_not_to_say field

pull/83/head
Kat 4 years ago
parent
commit
1d7c1872f1
  1. 4
      config/forms/2021_2022.json
  2. 13
      db/migrate/20211108134601_remaining_core_migrations.rb
  3. 3
      db/schema.rb

4
config/forms/2021_2022.json

@ -990,9 +990,7 @@
"illness_type_6": "Memory",
"illness_type_7": "Mental health - such as depression, anxiety, schizophrenia or bipolar",
"illness_type_9": "Socially or behaviourally - such as those associated with autism spectral disorder (ASD) including Aspergers’ or attention deficit hyperactivity disorder (ADHD))",
"illness_type_10": "Other",
"divider": true,
"condition_effects_prefer_not_to_say": "Prefer not to say"
"illness_type_10": "Other"
}
}
}

13
db/migrate/20211108134601_remaining_core_migrations.rb

@ -0,0 +1,13 @@
class RemainingCoreMigrations < ActiveRecord::Migration[6.1]
def up
change_table :case_logs, bulk: true do |_t|
remove_column :case_logs, :condition_effects_prefer_not_to_say
end
end
def down
change_table :case_logs, bulk: true do |_t|
add_column :case_logs, :condition_effects_prefer_not_to_say, :integer
end
end
end

3
db/schema.rb

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_11_08_091320) do
ActiveRecord::Schema.define(version: 2021_11_08_134601) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -125,7 +125,6 @@ ActiveRecord::Schema.define(version: 2021_11_08_091320) do
t.integer "illness_type_7"
t.integer "illness_type_9"
t.integer "illness_type_10"
t.integer "condition_effects_prefer_not_to_say"
t.integer "rp_homeless"
t.integer "rp_insan_unsat"
t.integer "rp_medwel"

Loading…
Cancel
Save