Class: CreateApnGroupNotifications
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateApnGroupNotifications
- Defined in:
- lib/generators/apn_on_rails/install/templates/008_create_apn_group_notifications.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.down ⇒ Object
19 20 21 |
# File 'lib/generators/apn_on_rails/install/templates/008_create_apn_group_notifications.rb', line 19 def self.down drop_table :apn_group_notifications end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/apn_on_rails/install/templates/008_create_apn_group_notifications.rb', line 3 def self.up create_table :apn_group_notifications do |t| t.integer :group_id, :null => false 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.text :custom_properties t.datetime :sent_at t. end add_index :apn_group_notifications, :group_id end |