Sha256: 4f26506887b09bff79e1fb69a83ccb2e886dd7437038cd694c82d46c1fa64b36

Contents?: true

Size: 482 Bytes

Versions: 11

Compression:

Stored size: 482 Bytes

Contents

class Rpush331Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
  def self.up
    change_column :rpush_notifications, :device_token, :string, null: true
    change_column :rpush_feedback, :device_token, :string, null: true
  end

  def self.down
    change_column :rpush_notifications, :device_token, :string, { null: true, limit: 64 }
    change_column :rpush_feedback, :device_token, :string, { null: true, limit: 64 }
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rpush-5.3.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-5.2.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-5.1.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-5.0.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-4.2.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-4.1.1 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-4.1.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-4.0.1 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-4.0.0 lib/generators/templates/rpush_3_3_1_updates.rb
rpush-3.3.1 lib/generators/templates/rpush_3_3_1_updates.rb
rpush_extended-3.2.6 lib/generators/templates/rpush_3_3_1_updates.rb