Sha256: 08177ef49e723a4cd4ffb1528ef086b406b24972ec87fbe8c17173de8703f8cb

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

class CreateNotifiableNotifications < ActiveRecord::Migration
  
  def change
    create_table :notifiable_notifications do |t|
      t.text :message
      t.text :params
      t.references :app
      
      #stats
      t.integer :sent_count, :default => 0
      t.integer :gateway_accepted_count, :default => 0
      t.integer :opened_count, :default => 0
      
      # APNS - Optional
      #t.integer :badge
      #t.text :sound
      #t.datetime :expiry
      
      # MPNS - Optional
      t.text :title
      
      t.timestamps
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notifiable-mpns-nverinaud-0.6.0 spec/support/db/migrate/20131228225140_create_notifiable_notifications.rb
notifiable-mpns-nverinaud-0.5.0 spec/support/db/migrate/20131228225140_create_notifiable_notifications.rb