mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
33 lines
760 B
Ruby
33 lines
760 B
Ruby
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: encrypted_configs
|
|
#
|
|
# id :bigint not null, primary key
|
|
# key :string not null
|
|
# value :text not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# account_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_encrypted_configs_on_account_id (account_id)
|
|
# index_encrypted_configs_on_account_id_and_key (account_id,key) UNIQUE
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (account_id => accounts.id)
|
|
#
|
|
class EncryptedConfig < ApplicationRecord
|
|
FILES_STORAGE_KEY = 'active_storage'
|
|
EMAIL_SMTP_KEY = 'action_mailer_smtp'
|
|
|
|
belongs_to :account
|
|
|
|
encrypts :value
|
|
|
|
serialize :value, JSON
|
|
end
|