Sha256: 723875104819bf10ee3d62a83ef5137f2e107fd19a7542bded8f4f2f83f25425

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

class CreateRapnsFeedback < ActiveRecord::Migration
  def self.up
    create_table :rapns_feedback do |t|
      t.string    :device_token,          :null => false, :limit => 64
      t.timestamp :failed_at,             :null => false
      t.timestamps
    end

    add_index :rapns_feedback, :device_token
  end

  def self.down
    if index_name_exists?(:rapns_feedback, :index_rapns_feedback_on_device_token, true)
      remove_index :rapns_feedback, name: :index_rapns_feedback_on_device_token
    end
    drop_table :rapns_feedback
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rpush-1.0.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-1.0.0 lib/generators/templates/create_rapns_feedback.rb