lib/generators/templates/add_gcm.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method up has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.up
    add_column :rapns_notifications, :type, :string, null: true
    add_column :rapns_apps, :type, :string, null: true

    AddGcm::Rapns::Notification.update_all type: 'Rapns::Apns::Notification'
Severity: Minor
Found in lib/generators/templates/add_gcm.rb - About 1 hr to fix

    Method down has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def self.down
        AddGcm::Rapns::Notification.where(type: 'Rapns::Gcm::Notification').delete_all
    
        remove_column :rapns_notifications, :type
        remove_column :rapns_apps, :type
    Severity: Minor
    Found in lib/generators/templates/add_gcm.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status