From a1e23cf6f89d4ee9e7c2f78e5daf8c116eb6d194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= Date: Thu, 9 Nov 2023 12:00:11 +0100 Subject: [PATCH] add missing envs --- config/secrets.yml | 5 +++++ db/schema.rb | 18 ++++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/config/secrets.yml b/config/secrets.yml index a225efc6..df76f764 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -41,6 +41,11 @@ decidim_default: &decidim_default password_blacklist: <%= Decidim::Env.new("DECIDIM_PASSWORD_BLACKLIST").to_array(separator: ", ").to_json %> allow_open_redirects: <%= Decidim::Env.new("DECIDIM_ALLOW_OPEN_REDIRECTS").to_boolean_string %> service_worker_enabled: <%= Decidim::Env.new("DECIDIM_SERVICE_WORKER_ENABLED", Rails.env.exclude?("development")).to_boolean_string %> + admin_password: + expiration_days: <%%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_EXPIRATION_DAYS", 90).to_i %> + min_length: <%%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_MIN_LENGTH", 15).to_i %> + repetition_times: <%%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_REPETITION_TIMES", 5).to_i %> + strong: <%%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_STRONG", true).to_boolean_string %> api: schema_max_per_page: <%= Decidim::Env.new("API_SCHEMA_MAX_PER_PAGE", 50).to_i %> schema_max_complexity: <%= Decidim::Env.new("API_SCHEMA_MAX_COMPLEXITY", 5000).to_i %> diff --git a/db/schema.rb b/db/schema.rb index e69c7c0f..c6f5f510 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -14,6 +14,7 @@ # These are extensions that must be enabled in order to support this database enable_extension "ltree" + enable_extension "pg_stat_statements" enable_extension "pg_trgm" enable_extension "plpgsql" @@ -1680,20 +1681,6 @@ t.index ["role", "decidim_user_group_id"], name: "decidim_group_membership_one_creator_per_group", unique: true, where: "((role)::text = 'creator'::text)" end - create_table "decidim_user_groups", id: :serial, force: :cascade do |t| - t.string "name", null: false - t.string "document_number", null: false - t.string "phone", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "avatar" - t.datetime "verified_at" - t.datetime "rejected_at" - t.integer "decidim_organization_id", null: false - t.index ["decidim_organization_id", "document_number"], name: "index_decidim_user_groups_document_number_on_organization_id", unique: true - t.index ["decidim_organization_id", "name"], name: "index_decidim_user_groups_names_on_organization_id", unique: true - end - create_table "decidim_user_moderations", force: :cascade do |t| t.bigint "decidim_user_id" t.integer "report_count", default: 0, null: false @@ -1953,4 +1940,7 @@ add_foreign_key "oauth_access_tokens", "decidim_users", column: "resource_owner_id" add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id" add_foreign_key "oauth_applications", "decidim_organizations" + add_foreign_key "weighted_consultation_votes", "decidim_users", column: "author_id" + add_foreign_key "weighted_consultation_votes", "decidim_users", column: "grantee_id" + add_foreign_key "weighted_consultation_votes", "decidim_users", column: "granter_id" end