Class: CreateGcmNotifications
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateGcmNotifications
- Defined in:
- lib/generators/templates/gcm_migrations/create_gcm_notifications.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.down ⇒ Object
18 19 20 |
# File 'lib/generators/templates/gcm_migrations/create_gcm_notifications.rb', line 18 def self.down drop_table :gcm_notifications end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/templates/gcm_migrations/create_gcm_notifications.rb', line 3 def self.up create_table :gcm_notifications do |t| t.integer :device_id, :null => false t.string :collapse_key t.text :data t.boolean :delay_while_idle t.datetime :sent_at t.integer :time_to_live t. end add_index :gcm_notifications, :device_id end |