module Rpush
  module Client
    module ActiveRecord
      class App < ::ActiveRecord::Base
        self.table_name = 'rpush_apps'

        has_many :notifications, class_name: 'Rpush::Client::ActiveRecord::Notification', dependent: :destroy

        validates :name, presence: true, uniqueness: { scope: [:type, :environment] }
      end
    end
  end
end

module Rpush
  module Client
    module ActiveRecord
      class App < ::ActiveRecord::Base
        self.table_name = 'rpush_apps'

        has_many :notifications, class_name: 'Rpush::Client::ActiveRecord::Notification', dependent: :destroy

        validates :name, presence: true, uniqueness: { scope: [:type, :environment], case_sensitive: true }
      end
    end
  end
end

Fix case sensitive uniqueness deprecation warning
Fix case sensitive uniqueness deprecation warning
