Sha256: 1ce7aa277f4a1f2e8ac8eb2feedd103f57d1cd680bad2d3a0ef076e794b44aaf

Contents?: true

Size: 608 Bytes

Versions: 2

Compression:

Stored size: 608 Bytes

Contents

class CreateNotifiableNotifications < ActiveRecord::Migration
  
  def change
    create_table :notifiable_notifications do |t|
      t.references :app
      
      #stats
      t.integer :sent_count, :default => 0
      t.integer :gateway_accepted_count, :default => 0
      t.integer :opened_count, :default => 0
      
      # notification properties
      t.text :message
      t.text :parameters
      t.string :sound
      
      # apns
      t.string :identifier
      t.datetime :expiry
      t.boolean :content_available
      t.boolean :mutable_content
      
      t.timestamps
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notifiable-rails-0.26.1 db/migrate/20131210115650_create_notifiable_notifications.rb
notifiable-rails-0.26.0 db/migrate/20131210115650_create_notifiable_notifications.rb