Sha256: f5ec45ed9f9673c204c4f8d4aeed173f04df2bce1188e9bb4717b356a3835be0

Contents?: true

Size: 664 Bytes

Versions: 20

Compression:

Stored size: 664 Bytes

Contents

class Rpush311Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
  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

  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
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rpush-5.4.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-5.3.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-5.2.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-5.1.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-5.0.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-4.2.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-4.1.1 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-4.1.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-4.0.1 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-4.0.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.3.1 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.3.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush_extended-3.2.6 lib/generators/templates/rpush_3_1_1_updates.rb
rpush_extended-3.2.5 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.2.4 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.2.3 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.2.2 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.2.1 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.2.0 lib/generators/templates/rpush_3_1_1_updates.rb
rpush-3.1.1 lib/generators/templates/rpush_3_1_1_updates.rb