class Rpush311Updates

Public Class Methods

down() click to toggle source
# File lib/generators/templates/rpush_3_1_1_updates.rb, line 9
def self.down
  change_table :rpush_notifications do |t|
    t.remove_index name: 'index_rpush_notifications_multi'
    t.index [:delivered, :failed], name: 'index_rpush_notifications_multi', where: 'NOT delivered AND NOT failed'
  end
end
up() click to toggle source
# File lib/generators/templates/rpush_3_1_1_updates.rb, line 2
def self.up
  change_table :rpush_notifications do |t|
    t.remove_index name: 'index_rpush_notifications_multi'
    t.index [:delivered, :failed, :processing, :deliver_after, :created_at], name: 'index_rpush_notifications_multi', where: 'NOT delivered AND NOT failed'
  end
end