Skip to content

Commit 367205a

Browse files
committed
Update migrated data from old push models to new Push model
1 parent 531f4bb commit 367205a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

db/migrate/20250519010827_migrate_data_to_push_model.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def migrate_passwords
3434
deletable_by_viewer: password.deletable_by_viewer,
3535
retrieval_step: password.retrieval_step,
3636
expired_on: password.expired_on,
37-
payload_ciphertext: password.payload_ciphertext,
38-
note_ciphertext: password.note_ciphertext,
39-
passphrase_ciphertext: password.passphrase_ciphertext,
37+
payload: password.payload,
38+
note: password.note,
39+
passphrase: password.passphrase,
4040
name: password.name,
4141
user_id: password.user_id,
4242
created_at: password.created_at,
@@ -83,9 +83,9 @@ def migrate_file_pushes
8383
deletable_by_viewer: file_push.deletable_by_viewer,
8484
retrieval_step: file_push.retrieval_step,
8585
expired_on: file_push.expired_on,
86-
payload_ciphertext: file_push.payload_ciphertext,
87-
note_ciphertext: file_push.note_ciphertext,
88-
passphrase_ciphertext: file_push.passphrase_ciphertext,
86+
payload: file_push.payload,
87+
note: file_push.note,
88+
passphrase: file_push.passphrase,
8989
name: file_push.name,
9090
user_id: file_push.user_id,
9191
created_at: file_push.created_at,
@@ -141,9 +141,9 @@ def migrate_urls
141141
deletable_by_viewer: nil, # URLs cannot be preemptively deleted by end users ever
142142
retrieval_step: url.retrieval_step,
143143
expired_on: url.expired_on,
144-
payload_ciphertext: url.payload_ciphertext,
145-
note_ciphertext: url.note_ciphertext,
146-
passphrase_ciphertext: url.passphrase_ciphertext,
144+
payload: url.payload,
145+
note: url.note,
146+
passphrase: url.passphrase,
147147
name: url.name,
148148
user_id: url.user_id,
149149
created_at: url.created_at,

0 commit comments

Comments
 (0)