Add migration to correct notification target types
This commit is contained in:
parent
28240bba27
commit
57785a116d
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CorrectNotificationTargetTypes < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
execute "UPDATE notifications SET target_type = 'Appendable' WHERE target_type = 'Appendable::Reaction'"
|
||||
|
||||
execute "UPDATE notifications SET target_type = 'Relationship' WHERE target_type = 'Relationships::Follow'"
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2022_07_06_174816) do
|
||||
ActiveRecord::Schema.define(version: 2022_07_08_203722) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
Loading…
Reference in New Issue