Skip to content

Commit 053e80a

Browse files
authored
Merge pull request #1248 from alphagov/remove-whitehall-frontend
Remove all content items rendered by Whitehall Frontend
2 parents 4bd73f6 + c2bb848 commit 053e80a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class RemoveWhitehallFrontend < ActiveRecord::Migration[7.1]
2+
def up
3+
ContentItem.where(rendering_app: "whitehall-frontend").delete_all
4+
end
5+
end

db/schema.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

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

0 commit comments

Comments
 (0)