Upgrading Decidim across several versions

Moving an old Decidim install to a supported release means applying each minor version in turn, with its own upgrade instructions, database changes and runtime requirements. This page explains the path, the preparation and the effort drivers.

On this page

Why upgrading Decidim across several versions takes planning

A team running an older Decidim release that is outside security support cannot jump straight to the current version. The upgrade has to pass through each minor version in order, applying that release's own upgrade instructions before moving to the next. Today only the 0.32.x and 0.31.x branches receive security updates, so 0.30.x and earlier are unsupported and should be treated as the starting point of a chain, not a place to stay. The update guide asks for one minor version at a time, for example 0.29 to 0.30 before 0.31, because some releases change database structures that the next step depends on.

The first action is a full database backup, taken before any code changes are deployed. Restoring a single step is much easier than untangling a half-applied migration chain, so confirm that the backup restores cleanly into a separate environment before relying on it. Also confirm which Decidim version your installation is actually running, including any deployed patch releases, because the starting point determines which upgrade instructions apply first. Ask your implementation partner or internal team to write down the full sequence of minor versions, with the steps and checks expected at each one.

Plan the work as a series of supported stops rather than one large change. Each stop needs its own backup, its own test pass on staging and a go or no-go decision before the next version is applied. Keep the sequence documented in the Decidim update guide, and check each release's instructions for database changes, runtime requirements and data migrations before you schedule production work.

What changes between the releases on the path

This table compares the runtime, framework, URL and database changes that matter at each release on an upgrade path, with the action each one requires. Read it as a checklist for the final target and each intermediate step, not as a complete list. The main takeaway is that the 0.32 line changes the runtime and URL behavior together, so it needs its own staging rehearsal.

ChangeImpactAction needed
Ruby for 0.31Ruby 3.3.4 is required, so the application server and gem set must run on itConfirm the Ruby version in the 0.31 release notes and test all custom modules against it in staging
Ruby for 0.32Ruby 3.4.7 is required, which is a further runtime step after 0.31Upgrade the Ruby runtime on the staging host before applying 0.32 code, and rebuild gems against it
Node for 0.31 and 0.32Node 22.14.x is required for asset builds on both linesPin the Node version in your build image and rerun asset compilation after each step
Rails 8.1 in 0.32.0The framework moves to Rails 8.1, which can change overrides, initializers and deprecated callsAudit overridden views and patched classes before upgrading, then run the full test suite
Locale-prefixed URLs in 0.32.0Links, bookmarks, redirects and reverse proxy rules may stop matching existing pathsMap old and new URL patterns, update proxy and redirect rules, and test key public pages
Database structure changesThe update guide warns that some releases change database structures, so each step may run schema changesBack up the database before every step and follow the release instructions for each minor version
Patch releases v0.31.7 and v0.32.1Security and bug fixes on the supported lines, released after the minor versionsApply the latest patch on the target line before go-live and confirm the change list for each patch
Older intermediate linesEarlier releases on the path carry their own Ruby, Node and database requirementsConfirm the exact requirements for each intermediate step in its release notes before starting that step

What to inventory and back up before the first step

Every step in a multi-version Decidim upgrade starts from the same baseline, so the preparation work has to be finished before anyone runs the first update. The items below cover the database, the custom code, the infrastructure around the app and the staging environment that will rehearse each step.

Full database backup before any step

Take a complete PostgreSQL backup of the production database and confirm that it restores. Decidim's update guide asks for a database backup before upgrading, and the release notes for some versions change database structures, so a backup taken before step one is the only clean way back. Record the backup location, its timestamp and the restore command the team tested, and keep it outside the application server.

Update guide

Inventory of overrides and patches

List every overridden view, patched class, initializer and custom module in the current installation, along with the Decidim file or class each one touches. Each entry is a future merge point that may break when a minor version changes the code underneath it. Mark which customizations are still needed and which were added for a bug that later releases fixed.

Community module compatibility list

Record every third-party module, verification handler or extra component, its source repository, its version and the Decidim versions it declares support for. Ask the module maintainer or check its release history for each target version in the chain. A module with no release for the next minor version blocks that step, so decide early whether to replace it, fork it or drop the feature.

File storage, jobs and mail checks

Confirm how uploads are stored through ActiveStorage, whether background jobs run through ActiveJob and which worker processes are active, and that SMTP delivery works from the current host. Note the scheduled tasks and any maps or geocoding services. These components often change configuration between releases, and a failure in them may only surface after the upgrade, when participants notice missing files or unsent notifications.

Installation docs

Versions and a matching staging copy

Record the current Ruby, Node and PostgreSQL versions and compare them with the requirements for each target release. The manual installation path uses PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS, so confirm the database version before planning the first step. Build a staging copy with a recent production database dump, the same uploads and the same configuration, so every step can be rehearsed against realistic data.

Manual install guide

How the upgrade sequence runs from one minor version to the next

The sequence turns a multi-release jump into a series of short, checkable cycles, so each intermediate version is deployed, tested and recoverable before the next one starts. The final output is a production system on the target release with a documented rollback point at every stage.

  1. Confirm the current version and inventory changes

    Record the exact Decidim version, Ruby and Node versions, PostgreSQL version and the list of overrides, custom modules and community modules running on the platform. Compare that list with the next minor release in the sequence, which is the first hop. Done means you have a written baseline that names every component that might break, and the platform owner has signed it off.

  2. Back up the database and application files

    Take a full PostgreSQL backup and a copy of uploaded files stored through ActiveStorage, then test that the backup can be restored into a separate environment. The update guide asks for a database backup before any upgrade step. Done means a restore test has completed on a non-production host and the backup identifier is recorded as the rollback point for this hop.

  3. Read the target release's upgrade instructions

    Open the upgrade notes for the minor release you are moving to and follow them in order, since some releases change database structures. Note required Ruby and Node versions, configuration keys, deprecated methods and any manual steps. Done means a checklist for this hop exists, with each item marked as applies, does not apply, or needs a decision from the team.

  4. Update the Ruby and Node runtimes

    Install the Ruby and Node versions the target release requires on the staging host first, then rebuild the bundle and JavaScript dependencies against them. Confirm that the application boots, assets compile and background jobs start under the new runtimes. Done means the app server and worker start cleanly on staging with no dependency resolution errors, and the previous runtime remains available for rollback.

  5. Apply the code and dependency change

    Check out the target release tag, merge your overrides and custom modules onto it, and resolve conflicts in a separate branch. Update Gemfile and configuration entries exactly as the release notes describe. Done means the codebase is committed as a tagged build for this hop, and the diff against the previous hop has been reviewed by someone other than its author.

  6. Run schema and data migrations

    Apply the database schema migrations and then the Decidim data migrations that the release requires, reviewing the migration status before and after. Keep logs of each run. Done means migration status shows no pending items, row counts for key tables match the pre-upgrade baseline within expected changes, and the migration output is archived with the build.

  7. Test and smoke check on staging

    Run the automated test suite for your modules and overrides, then perform smoke checks on key paths: sign-in, a sample participatory space, a proposal or vote, email delivery, file upload and admin pages. Check that custom modules and community modules load on the new version. Done means all agreed checks pass and any failures have tickets with owners and a decision to fix or defer.

  8. Move production only after staging passes

    Schedule the production window, announce expected downtime to participants, repeat the backup, then apply the same tagged build and migrations. Run the smoke checks again on production and keep the previous build and backup ready until the platform is stable. Done means production serves the target version, the smoke checks pass, and the rollback point is recorded. The whole cycle then repeats for the next minor version until the target release is reached.

How Ruby, Node and downtime shape the cutover window

The runtime changes between the last two minor lines are where a cutover window gets longer than planned. Moving from 0.31 to 0.32 takes Ruby from 3.3.4 to 3.4.7, while Node stays on the 22.14.x line for both. Because the Ruby change forces a new bundle install and a rebuilt asset pipeline, the team should expect the rebuild step to take real time on the production host, not just in a laptop test. Rollback is also harder than a code revert: restoring the previous release means restoring the previous Ruby, gems and compiled assets together, so the team should keep the old release directory and its database backup ready and rehearse that path, not assume it.

Each intermediate minor version may need its own maintenance window because each release can ship its own upgrade instructions and database changes. Decidim's update guide asks teams to move one minor version at a time and to back up the database first, so a multi-version path is a sequence of separate cutovers rather than a single one. The team has to decide between two patterns. Short windows per step keep each rollback small and let the team stop between steps, but they multiply the number of downtimes and the number of times the platform is taken offline for participants. A single longer combined window reduces the number of outages but puts every change, including every data migration, into one rollback unit. Choose based on how much the community can tolerate interruptions during active participation periods and how confident the team is in its staging rehearsals.

The duration of the data migration step is the number to confirm before any window is promised. Its length depends on the size of the database, the volume of participation data and the data migrations that run at each version, and none of these can be estimated from documentation alone. Run the full chain against a copy of production in staging, time each step separately, and record the Ruby and Node versions used at each stage. Ask the vendor or the community which data migrations are expected at each minor version, and budget the window from the slowest measured step plus the rebuild and smoke-test time, with a rollback time in reserve.

Testing and rollback options for each stage of the upgrade

A staging rehearsal runs the full chain of minor-version upgrades against a copy of production data before anyone touches the live platform. The goal is to learn where each step fails, how long each step takes on your data volume, and which manual actions the release instructions require. Build the staging environment to match production in Ruby and Node versions, PostgreSQL version, file storage, background job setup and SMTP settings, so the rehearsal reflects the real system rather than a simplified one.

  • Refresh the copy from a current backup: Take the staging database from a backup made shortly before the rehearsal, and record its timestamp so results can be compared with production.
  • Run every step in order: Apply each minor version in sequence and follow its upgrade instructions, rather than jumping ahead, so the rehearsal tests the same path production will take.
  • Time each step: Record how long migrations and asset builds take, since these figures set the production downtime window.
  • Log every manual action: Note each command, config change and data migration run, so the production runbook matches what was actually needed.
  • Repeat the rehearsal: Run it again after fixing any failure to confirm the corrected procedure works from a clean starting point.

Before approving the production window, confirm with your platform team that the staging timings, error log and runbook have been reviewed and signed off.

What makes a multi-version Decidim upgrade longer or costlier

This table lists the factors that lengthen or raise the cost of moving a Decidim install across several minor versions, with what each one changes and how to keep it under control. Read each row against your own inventory, because the drivers compound: a long version gap with many patches and old modules costs far more than any one factor alone. Ask a partner to size every driver from your actual codebase, module list, database and environments rather than accepting general estimates.

DriverWhy it changes effortHow to keep it down
Minor versions between current and targetEach minor step needs its own upgrade instructions, database changes and testing, so the chain multiplies the work.Confirm the exact release chain with the update guide and avoid skipping steps.
Overrides and monkey patchesPatched views and classes can break silently when the core code changes between releases.Audit overrides before each step and move them into modules where possible.
Community modules and their maintenance statusAn abandoned module may not support the next Decidim release, which can force a rewrite or replacement.Check each module's compatibility with every target release before the first step.
Data volume and migration runtimeLarge databases lengthen backups, data migrations and rollback windows, which drives the downtime window.Measure runtime on a copy of production data during rehearsal.
Custom authentication or verification handlersLogin, social providers and census or verification handlers touch identity flows that must be retested at each step.Inventory every handler and test sign-in and authorization after each version.
Hosting modelDocker deployments, manual Rails installs and multi-tenant setups each need different image, dependency and configuration changes.Document the current stack and confirm which runtime changes each target release requires.
Number of environments to rehearseDevelopment, staging and production each need the full chain run and checked, so every added environment adds rehearsal cycles.Keep staging close to production and script the steps so each rehearsal is repeatable.
Ruby and Node runtime changes along the chainEach release can require a different Ruby and Node version, which may affect gems, build tooling and the server image.Map the runtime requirement of each step before scheduling the rehearsals.

Questions teams ask before upgrading Decidim across several versions

Can our own team upgrade Decidim across several versions without a partner?

Yes, if your team has Rails and PostgreSQL operations experience, a staging environment that mirrors production, and time to read each release's upgrade instructions. The Decidim update guide asks you to move one minor version at a time, back up the database first, and follow each release's instructions because some change database structures. The harder part is usually custom code: overrides, patched classes and community modules each need checking at every step. Ask yourself whether you have someone who can own that review for the full chain, not just the final version. A partner's quote should be based on the same written scope you would use internally.

What drives the cost and effort of a multi-version Decidim upgrade?

The main driver is the number of minor versions between your current release and the supported target, since each step has its own instructions, dependency changes and testing. Other drivers are the amount of custom code, the number of community modules and whether each one supports the next version, the size and state of your database, and how many integrations (identity providers, mail, maps, storage) must be retested. Costs are mostly one-time labor for inventory, rehearsals and sign-off, with some recurring cost if you keep a staging environment and apply future patches. When requesting a quote, ask for the step list, the rehearsal count, the list of modules covered and what is excluded.

How long does a multi-version Decidim upgrade take?

Duration depends mostly on the inventory, not on the version numbers alone. Teams with few overrides, supported modules and a clean database usually move faster than teams with patched core classes, abandoned modules and large amounts of participation data. Plan for each minor version to need its own rehearsal on a staging copy of production, because data migrations and schema changes may behave differently on your data. Confirm the timeline with your vendor against a written list of steps, and ask how the plan handles a module that fails a rehearsal. The Decidim release notes for each version are the best source for the changes you will need to test.

What do we need from our staff during the upgrade?

The upgrade needs four kinds of input from your side: access to the current server, database, configuration and code repository; a staging environment where rehearsals can run; test users with the roles your organization actually uses, such as administrators, moderators and verified participants; and a named business owner who signs off each step. Staff should also confirm which integrations are live, including social login providers, SMTP, maps and identity verification, because each one needs a check after the upgrade. Ask your implementation partner to list these inputs in the written scope so that delays are visible early.

Can we skip Decidim versions and jump straight to the latest release?

No. The Decidim update guide says to upgrade one minor version at a time, for example moving from 0.29 to 0.30 before 0.31, and to follow each release's upgrade instructions. Some releases change database structures, so skipping a version can leave your data and code in a state the later instructions do not expect. The practical plan is a chain of steps, each tested on staging and backed up before it runs. Confirm the current supported line on the Decidim security policy before you choose the target, because only the last two minor versions receive security updates until version 1.0.

What happens if a community module we depend on is abandoned?

If a community module stops receiving updates, it may not support the Decidim version you need, which can block the upgrade at that step. Your options usually include finding a maintained fork, rewriting the needed behavior as your own module, or removing the feature if the business can accept that. Start by checking each module's compatibility with every target version in the chain, since a module that works on one step may fail on the next. Treat any module that you cannot keep current as a scope decision to be made before the rehearsal begins, not during the cutover window. Ask your partner to include module decisions in the written scope.

Do we need to take the platform offline during the upgrade?

Downtime depends on your deployment, database size and how many steps are chained together. Each step includes a database backup, migrations and a restart, so plan a maintenance window for every rehearsal and for the production cutover. Ask whether the plan allows rollback to the backup at each step, how long the backup and restore have been tested, and how participants will be told about read-only periods. Decidim's own documentation on updating and backups is the right reference for the exact sequence your team will follow.

The phases of a staged Decidim upgrade move one minor version at a time

The sequence starts with an inventory of the current release, custom code and community modules, then a backup of the database before anything changes. Each step is rehearsed on a staging copy using that release's own upgrade instructions, applied to production only after the rehearsal passes, and then verified. Every minor version is a separate pass through this loop, and a failed step leads to rollback from the backup rather than forward into the next version. The loop ends when the target supported release is reached.

Each minor version is one pass through the loop, with rollback from a failed step.

How DeployOpen scopes and delivers a multi-version Decidim upgrade

The sequence starts with a written inventory and ends with a delivered upgrade that has been rehearsed on staging, checked at each minor version and backed by rollback points. Scope, deliverables and timelines are agreed in writing before any work starts.

  1. Inventory the current installation

    DeployOpen reviews the running Decidim version, the Ruby and Node runtimes, the PostgreSQL version, the hosting model (manual Rails or Docker), and every custom change: overrides, patched classes, custom modules, community modules, identity providers and integrations. The client supplies access to the codebase, the deployment configuration and a copy of the production database schema. The step closes with a written inventory listing each item, its owner and whether it is supported on each target version. Confirm with your team who owns each custom item before this step begins.

  2. Map the upgrade path and write the scope

    Using the inventory, DeployOpen lays out the chain of minor versions the installation must pass through, since Decidim's update guide asks for one minor version at a time with each release's own upgrade instructions. For each hop, the plan names the Ruby and Node changes, the database changes and the community modules that need a compatible release. The written scope covers the target version, which items are in and out, the staging environments, the rehearsal count, the cutover window and the deliverables. Scope and deliverables are agreed in writing before work starts, and the quote follows from that document.

  3. Build a staging copy and rehearse each minor version

    DeployOpen sets up a staging environment in the client's infrastructure with a recent sanitized copy of production data, then applies each minor version in turn and runs the upgrade instructions for that release. Each hop is recorded: commands run, migrations applied, errors and the fix for each error. The rehearsal ends when the staging instance starts, the core spaces and components load and the custom code passes its tests on that version. Results from each hop feed the next hop's plan, so the production run repeats a sequence that has already been proven.

  4. Fix overrides, modules and data migrations

    During rehearsals, DeployOpen moves custom views, patched classes and community modules onto compatible releases or adjusts them where the target version changed the code underneath. Data migrations specific to each minor version are run and checked in order. The step closes when the staging instance passes the agreed test set on the final target version and the client's team has reviewed the changes in the version control history.

  5. Set the production cutover and rollback points

    DeployOpen writes the production runbook: a verified backup of the database and file storage taken immediately before each hop, the order of hops, the health checks after each one, the decision points where the team can stop, and the rollback steps for each point. The client confirms the maintenance window and the people who approve a rollback. The runbook is reviewed on staging before the production date is fixed, and the step closes when the client signs off on it.

  6. Deliver the production upgrade with checks

    DeployOpen runs the hops in production following the runbook, pausing after each one to run the health checks, review logs and confirm that a restore point exists before continuing. Any deviation from the rehearsal is recorded and reported to the client team before the next hop starts. The step closes when the target version runs in production, the checks pass and the client confirms that users, administrators and integrations work as expected.

  7. Hand over documentation and monitor the release line

    DeployOpen delivers the upgrade record: the inventory, the hop-by-hop log, the changes to custom code, the backup and rollback evidence and the runbook as it was run. Decidim's support policy covers only the last two minor versions with security updates, so the handover also notes which release line the installation is on and when it should move again. The step closes when the client team has received the documents and confirmed the handover.

  8. Continue with a retainer for upgrades and support

    Because Decidim releases new minor versions and security patches on an ongoing basis, the client may prefer a retainer for ongoing support, scheduled upgrades and continuous testing rather than planning each upgrade from scratch. A retainer is agreed in writing with its own scope, which should name the release lines covered, the response expectations for security patches and the testing that runs before each upgrade. Ask for the retainer terms in writing and compare them with what your team can staff internally.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.