Skip to content

Commit

Permalink
add missing envs
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Nov 9, 2023
1 parent 9590a68 commit a1e23cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
5 changes: 5 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
18 changes: 4 additions & 14 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit a1e23cf

Please sign in to comment.