Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6281dbc1ee
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.601 kb
class CreateApnNotifications < ActiveRecord::Migration # :nodoc:
def self.up
create_table :apn_notifications do |t|
t.integer :device_id, :null => false
t.integer :errors_nb, :default => 0 # used for storing errors from apple feedbacks
t.string :device_language, :size => 5 # if you don't want to send localized strings
t.string :sound
t.string :alert, :size => 150
t.integer :badge
t.datetime :sent_at
t.timestamps
end
add_index :apn_notifications, :device_id
end
def self.down
drop_table :apn_notifications
end
end
Jump to Line
Something went wrong with that request. Please try again.