diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 16:03:40 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 16:03:40 +0200 |
| commit | 0f4288d91de7b48f7bbed832ca80246b0055cc64 (patch) | |
| tree | 7be060513b02a5abaa48f135de090b8688ef1433 /app/models/node.rb | |
| parent | 9d32458491d79f8e06a706375030c78282f4427b (diff) | |
Drop nodes.external_url
The column moved to page.rb and was now written only by publish_draft!
and by the chapter seed, and read by nothing.
lib/tasks/pages.rake goes with it. backfill_external_url reads the dropped
column. backfill_address is spent and no longer safe to re-run.
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index a401ed69..6fc6c3dc 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -257,8 +257,6 @@ class Node < ApplicationRecord | |||
| 257 | self.slug = self.head.slug | 257 | self.slug = self.head.slug |
| 258 | end | 258 | end |
| 259 | 259 | ||
| 260 | self.external_url = self.head.external_url | ||
| 261 | |||
| 262 | if self.head.parent_node_id && self.head.parent_node_id != parent_id | 260 | if self.head.parent_node_id && self.head.parent_node_id != parent_id |
| 263 | new_parent = Node.find_by(:id => self.head.parent_node_id) | 261 | new_parent = Node.find_by(:id => self.head.parent_node_id) |
| 264 | 262 | ||
