1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-20 22:59:48 +00:00

chore: Upgrade to Ruby 3.2.1 & Rails 6.0

* chore: upgrade to rails 6.0

* chore: upgrade ruby to 3.2.1

* chore: upgrade bundler

* chore: upgrade execjs

* chore: upgrade to rails 6.1

* chore: switch to sentry-ruby from raven

* chore: add extra platforms to gemfile
هذا الالتزام موجود في:
Adam Cooke
2023-04-06 11:40:45 +01:00
ملتزم من قبل GitHub
الأصل 363ceff822
التزام 957b784658
25 ملفات معدلة مع 285 إضافات و243 حذوفات

عرض الملف

@@ -72,9 +72,9 @@ class Server < ApplicationRecord
default_value :spam_threshold, -> { Postal.config.general.default_spam_threshold }
default_value :spam_failure_threshold, -> { Postal.config.general.default_spam_failure_threshold }
validates :name, presence: true, uniqueness: { scope: :organization_id }
validates :name, presence: true, uniqueness: { scope: :organization_id, case_sensitive: false }
validates :mode, inclusion: { in: MODES }
validates :permalink, presence: true, uniqueness: { scope: :organization_id }, format: { with: /\A[a-z0-9-]*\z/ }, exclusion: { in: RESERVED_PERMALINKS }
validates :permalink, presence: true, uniqueness: { scope: :organization_id, case_sensitive: false }, format: { with: /\A[a-z0-9-]*\z/ }, exclusion: { in: RESERVED_PERMALINKS }
validate :validate_ip_pool_belongs_to_organization
before_validation(on: :create) do