Fix RS auth array usage in production
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Release Drafter / Update release notes draft (pull_request) Successful in 3s

Serialization into YAML breaks the native PostgreSQL array usage.

Needs to be adjusted later to not use the environment, but database
adapter (issue #149).
This commit is contained in:
Râu Cao 2024-01-29 10:52:52 +02:00
parent eaf41e0835
commit 50f91cc7d7
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -2,7 +2,7 @@ class RemoteStorageAuthorization < ApplicationRecord
belongs_to :user
belongs_to :web_app, class_name: "AppCatalog::WebApp", optional: true
serialize :permissions
serialize :permissions unless Rails.env.production?
validates_presence_of :permissions
validates_presence_of :client_id