Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
#363
We don't need the SDG Target features so we want to delete them
Changes
This commit deletes the SDG Target features from the application. This
includes the following tables and all of their corresponding
associations, controllers, factories, models, policies, routes,
serializers, and specs:
sdgtarget_categories
sdgtarget_indicators
sdgtarget_measures
sdgtarget_recommendations
sdgtargets
It does not delete the
groups_sdgtargets_default
field from theTaxonomy
model.Considerations
The database migration that removes the tables is reversible, with the
following caveats:
It recreates the dropped tables using the statements in
schema.rb
,which were taken from the version in
nz-justice-development
at thetime of this commit. Right now, there aren't any pending PRs that alter
those table definitions so they should be correct, but that could change
between the creation and merging of this PR.
Rolling back the migration will restore the tables, but it will not
restore any of their previous data. That data will only be recoverable
if we take and retain a database backup prior to deploying this change.