mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:39:52 +01:00
17 lines
625 B
Ruby
17 lines
625 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Rpush311Updates < ActiveRecord::Migration[5.0]
|
|
def self.up
|
|
change_table :rpush_notifications do |t|
|
|
t.remove_index name: "index_rpush_notifications_multi"
|
|
t.index %i[delivered failed processing deliver_after created_at], name: "index_rpush_notifications_multi", where: "NOT delivered AND NOT failed"
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
change_table :rpush_notifications do |t|
|
|
t.remove_index name: "index_rpush_notifications_multi"
|
|
t.index %i[delivered failed], name: "index_rpush_notifications_multi", where: "NOT delivered AND NOT failed"
|
|
end
|
|
end
|
|
end
|