Commit 06de1d7
committed
Add data migrator rake task for offsite links
Offsite links now support having many parents. Hence, the need to migrate data from the old table to the new join table.
This rake task helps to action it out and takes care of some orphaned offsite links as well.
There's an unlikely edge case that an existing offsite link will have no parent and not belong in a feature list.
In such case, we simply skip and log it to the console, as there's not much that can be done to those.1 parent ef6f439 commit 06de1d7
1 file changed
Lines changed: 18 additions & 0 deletions
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments