Sha256: b258a3b9a23f4f896a436aeebd27ee013ee31a21becffe8db4f963899f4d0514

Contents?: true

Size: 573 Bytes

Versions: 22

Compression:

Stored size: 573 Bytes

Contents

class Rpush301Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
  def self.up
    change_column_null :rpush_notifications, :mutable_content, false
    change_column_null :rpush_notifications, :content_available, false
    change_column_null :rpush_notifications, :alert_is_json, false
  end

  def self.down
    change_column_null :rpush_notifications, :mutable_content, true
    change_column_null :rpush_notifications, :content_available, true
    change_column_null :rpush_notifications, :alert_is_json, true
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
rpush-3.1.0 lib/generators/templates/rpush_3_0_1_updates.rb
rpush-3.0.2 lib/generators/templates/rpush_3_0_1_updates.rb