Add Leafcutter addon

This commit is contained in:
Darren Clarke 2023-05-17 06:41:47 +00:00
parent 4498cc95f6
commit 0190ccdfd3
8 changed files with 92 additions and 5207 deletions

View file

@ -1,8 +1,8 @@
# frozen_string_literal: true
# Set up PGP addon
class PGP < ActiveRecord::Migration[5.2]
def self.up
# return if it's a new setup
# return unless Setting.exists?(name: 'system_init_done')
Setting.create_if_not_exists(
title: 'PGP integration',
name: 'pgp_integration',
@ -43,15 +43,6 @@ class PGP < ActiveRecord::Migration[5.2]
},
frontend: true
)
Setting.create_if_not_exists(
title: 'Defines postmaster filter.',
name: '0016_postmaster_filter_smime',
area: 'Postmaster::PreFilter',
description: 'Defines postmaster filter to handle secure mailing.',
options: {},
state: 'Channel::Filter::SecureMailing',
frontend: false
)
create_table :pgp_keypairs do |t|
t.string :fingerprint, limit: 250, null: false