class CreateRailsPushNotificationsNotifications
Public Instance Methods
change()
click to toggle source
# File lib/generators/rails-push-notifications/templates/migrations/create_rails_push_notifications_notifications.rb, line 2 def change create_table :rails_push_notifications_notifications do |t| t.text :destinations t.integer :app_id t.string :app_type t.text :data t.text :results t.integer :success t.integer :failed t.boolean :sent, default: false t.timestamps null: false end add_index( :rails_push_notifications_notifications, [:app_id, :app_type, :sent], name: 'app_and_sent_index_on_rails_push_notifications' ) end