Skip to content

Commit

Permalink
Merge pull request #1248 from alphagov/remove-whitehall-frontend
Browse files Browse the repository at this point in the history
Remove all content items rendered by Whitehall Frontend
  • Loading branch information
brucebolt authored Mar 12, 2024
2 parents 4bd73f6 + c2bb848 commit 053e80a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20240312132747_remove_whitehall_frontend.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemoveWhitehallFrontend < ActiveRecord::Migration[7.1]
def up
ContentItem.where(rendering_app: "whitehall-frontend").delete_all
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_02_20_151333) do
ActiveRecord::Schema[7.1].define(version: 2024_03_12_132747) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
Expand Down

0 comments on commit 053e80a

Please sign in to comment.