mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 14:06:04 +01:00
12 lines
392 B
Ruby
12 lines
392 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class MoveAppendableNotifications < ActiveRecord::Migration[7.0]
|
||
|
def up
|
||
|
Notification::where(target_type: "Appendable").update_all(target_type: "Reaction") # rubocop:disable Rails/SkipsModelValidations
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
Notification::where(target_type: "Reaction").update_all(type: "Appendable") # rubocop:disable Rails/SkipsModelValidations
|
||
|
end
|
||
|
end
|