Fix incorrect internal class names in Rpush migration

This was caused by `rubocop -A`
This commit is contained in:
Karina Kwiatek 2022-09-12 00:48:04 +02:00
parent 4e65954a7a
commit 29a3bfea88
1 changed files with 21 additions and 21 deletions

View File

@ -41,7 +41,7 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class CreateRapnsNotifications < ActiveRecord::Migration[5.0]
def self.up def self.up
create_table :rapns_notifications do |t| create_table :rapns_notifications do |t|
t.integer :badge, null: true t.integer :badge, null: true
@ -70,7 +70,7 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class CreateRapnsFeedback < ActiveRecord::Migration[5.0]
def self.up def self.up
create_table :rapns_feedback do |t| create_table :rapns_feedback do |t|
t.string :device_token, null: false, limit: 64 t.string :device_token, null: false, limit: 64
@ -88,7 +88,7 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class AddAlertIsJsonToRapnsNotifications < ActiveRecord::Migration[5.0]
def self.up def self.up
add_column :rapns_notifications, :alert_is_json, :boolean, null: true, default: false add_column :rapns_notifications, :alert_is_json, :boolean, null: true, default: false
end end
@ -98,7 +98,7 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class AddAppToRapns < ActiveRecord::Migration[5.0]
def self.up def self.up
add_column :rapns_notifications, :app, :string, null: true add_column :rapns_notifications, :app, :string, null: true
add_column :rapns_feedback, :app, :string, null: true add_column :rapns_feedback, :app, :string, null: true
@ -110,7 +110,7 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class CreateRapnsApps < ActiveRecord::Migration[5.0]
def self.up def self.up
create_table :rapns_apps do |t| create_table :rapns_apps do |t|
t.string :key, null: false t.string :key, null: false
@ -127,13 +127,13 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class AddGcm < ActiveRecord::Migration[5.0]
module Rapns module Rapns
class App < ApplicationRecord class App < ActiveRecord::Base
self.table_name = "rapns_apps" self.table_name = 'rapns_apps'
end end
class Notification < ApplicationRecord class Notification < ActiveRecord::Base
belongs_to :app belongs_to :app
self.table_name = "rapns_notifications" self.table_name = "rapns_notifications"
end end
@ -229,10 +229,10 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class AddWpns < ActiveRecord::Migration[5.0]
module Rapns module Rapns
class Notification < ApplicationRecord class Notification < ActiveRecord::Base
self.table_name = "rapns_notifications" self.table_name = 'rapns_notifications'
end end
end end
@ -246,10 +246,10 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class AddAdm < ActiveRecord::Migration[5.0]
module Rapns module Rapns
class Notification < ApplicationRecord class Notification < ActiveRecord::Base
self.table_name = "rapns_notifications" self.table_name = 'rapns_notifications'
end end
end end
@ -270,14 +270,14 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class RenameRapnsToRpush < ActiveRecord::Migration[5.0]
module Rpush module Rpush
class App < ApplicationRecord class App < ActiveRecord::Base
self.table_name = "rpush_apps" self.table_name = 'rpush_apps'
end end
class Notification < ApplicationRecord class Notification < ActiveRecord::Base
self.table_name = "rpush_notifications" self.table_name = 'rpush_notifications'
end end
end end
@ -326,7 +326,7 @@ class AddRpush < ActiveRecord::Migration[5.0]
end end
end end
class AddRpush < ActiveRecord::Migration[5.0] class AddFailAfterToRpushNotifications < ActiveRecord::Migration[5.0]
def self.up def self.up
add_column :rpush_notifications, :fail_after, :timestamp, null: true add_column :rpush_notifications, :fail_after, :timestamp, null: true
end end