Sha256: a2e985c3acbcd1528c579152b411699a55e5c01c760e499923fde4bb04139f6a

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

class Rpush331Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
  def self.up
    change_column :rpush_notifications, :device_token, :text, null: true
    change_column :rpush_feedback, :device_token, :text, 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

1 entries across 1 versions & 1 rubygems

Version Path
rpush_extended-3.2.5 lib/generators/templates/rpush_3_3_1_updates.rb