Decidim 0.30 to 0.31 upgrade

Moving a Decidim install off the unsupported 0.30 line to 0.31, with Ruby, Node, data migration and custom module changes planned before production.

On this page

Why a Decidim 0.30 to 0.31 upgrade cannot wait

If your installation is still on Decidim 0.30, security updates no longer reach you. Decidim supports only the last two minor versions with security fixes until version 1.0, which currently means 0.32.x and 0.31.x. The 0.30.x line and earlier are outside that window, so any vulnerability fixed in a later release will not be backported to your installation. The first step is to confirm your exact running version in your own environment, including any patch-level changes your team has made, before you plan the work.

The 0.31 branch is the supported destination for this step, and it is still maintained: v0.31.7 was released on September 3, 2026. Decidim's update guide requires moving one minor version at a time, so a 0.30 install goes to 0.31 and only then toward 0.32. Each step has its own upgrade instructions because some releases change database structures. Plan the 0.31 target as a stop on the way to 0.32, not as a final destination, and ask your team to confirm that the 0.32 path is scheduled, since 0.32 requires newer Ruby and Node versions than 0.31 does.

The reason to act now is the disclosure timing in Decidim's security policy. Implementers get a grace period of 2 months to apply patches for standard vulnerabilities and 4 months for critical ones before details are published. On an unsupported line, that window gives you no fix to apply, so the exposure lasts as long as the platform runs unpatched. Check whether your organization can meet a patch window on 0.31 and whether a staging rehearsal, backup and rollback plan fit into the schedule you need, and report any security questions to security@decidim.org or through GitHub Security Advisories.

What changes between 0.30 and 0.31

This table compares what 0.30 installs must change for 0.31, the impact of each change, and the action to take before cutting over. Read each row as a gate: finish the runtime and database steps on a staging copy first, then test custom code and community modules against 0.31. Facts not listed here, such as the full release note list, should be confirmed in the 0.31 release notes before you schedule the upgrade.

ChangeImpact on a 0.30 installAction needed
Ruby 3.3.4 requirementHosts running the Ruby version used by 0.30 must move to Ruby 3.3.4 before 0.31 will run.Install Ruby 3.3.4 on a staging host, rebuild the bundle and run the test suite before production.
Node 22.14.x requirementThe asset pipeline needs Node 22.14.x, so older Node versions can break asset compilation.Install Node 22.14.x on build servers and confirm assets compile in staging.
PostgreSQL 17.4 or later (manual install guide)The manual installation guide for this release lists PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS.Check your database server version and plan a major upgrade if you run an older PostgreSQL.
New data migration commandsDecidim data migrations are run through its own commands, separate from schema migrations.Read the 0.31 update steps, run the data migration commands on staging and record their output.
Database structure changesSome releases change database structures, so each release's upgrade instructions must be followed in order.Back up the database first, then follow the 0.31 upgrade instructions exactly before running any later steps.
Custom code and community modulesOverrides, patched classes and third-party modules may not support 0.31 even if the core upgrade succeeds.Audit overrides and modules against 0.31, then confirm each module supports the target version.

What to prepare before touching production

Most failed Decidim upgrades are decided before anyone runs a migration. The cards below cover what to back up, what to inventory, where to rehearse, and which runtimes to pin, so each owner knows what they must hand over before the 0.31 work starts.

Full database backup

Take a complete PostgreSQL backup before any upgrade step, and confirm it restores. Decidim's update guide tells implementers to back up the database first because some minor releases change database structures. Your platform or database team owns the backup, and the application owner should record the backup time, the restore procedure and who can authorize a rollback. Ask the team to test a restore into a separate instance, not just check that the dump file exists.

Decidim update guide

Inventory of overrides and custom modules

List every view override, patched class, initializer, custom module and community module in use, with its owner and the Decidim version it was written for. Overrides in the application are the most common source of breakage when moving from 0.30 to 0.31. The Decidim product team and your development partner usually own the code, but the platform owner should confirm that each item is still needed and that its source is in version control.

Integrations and runtime services

Record how ActiveStorage, SMTP, ActiveJob background workers, social login providers and maps or geocoding are configured in production. Each one can fail quietly after an upgrade, for example when a queue name changes or a credential is rotated. Your operations team owns these services, and the reader should gather the current configuration keys, provider client settings and the callback URLs registered with each identity provider.

Social providers docs

Staging copy of production data

Build a staging environment from a recent production backup, with the same database version, file storage layout and integrations stubbed or pointed at test accounts. Run the full 0.31 upgrade there first and treat the staging run as the rehearsal for production. The platform team owns the environment, and the application owner should agree on which functional checks (login, proposal creation, admin exports) must pass before production is scheduled.

Ruby and Node runtime setup

Install Ruby 3.3.4 and Node 22.14.x on the build and application hosts that the 0.31 release requires, and pin them so that a system update does not change them mid-upgrade. Decidim's installation documentation lists these versions for the 0.31 line. The DevOps or platform team owns the runtime, and the reader should confirm that asset compilation and the test suite run on these exact versions in staging.

Decidim installation docs

How the 0.30 to 0.31 upgrade runs step by step

The sequence moves a 0.30 install onto the supported 0.31 line in a rehearsed order, so each change is checked on staging before production sees it.

  1. Confirm the current version and back up the database

    Record the Decidim version, Ruby and Node versions, installed community modules and the PostgreSQL version in production, then take a full database backup and a copy of uploaded files. Confirm that you can restore the backup to a separate host before anything else changes. The step is done when the restore test completes and the backup location, version record and owner are written down. Rollback point: the untouched production system and the verified backup remain available until cutover.

  2. Rebuild staging on Ruby 3.3.4 and Node 22

    Build a staging environment that mirrors production's hosting, background job setup, file storage, SMTP and social login configuration. Install Ruby 3.3.4 and Node 22.14.x, which the 0.31 line uses, and restore the production database copy into it. The step is done when the untouched 0.30 install boots on staging with the new runtimes and the existing test suite passes on the old code. Rollback point: staging can be discarded and rebuilt without touching production.

  3. Apply the 0.31 upgrade instructions and database changes

    Follow the upgrade instructions published for the 0.31 release exactly, one minor version at a time, and apply the database changes it lists. Do not skip the release's own steps or assume that instructions from another version still apply, because some releases change database structures. The step is done when the schema migrations complete without errors and the application starts on staging. Rollback point: restore the staging database backup from step one and rerun the upgrade from the start.

  4. Run the data migration commands and check status

    Run the data migration commands that the 0.31 instructions describe, then check the status output to confirm that every data migration has been applied and none is pending or failed. Keep the output in the change record, since schema migrations and data migrations are reported separately and both matter. The step is done when the status check shows all data migrations complete and a sample of records (proposals, users, spaces) looks correct in the admin panel. Rollback point: a failed data migration is rerun only after restoring the staging backup, so the database state stays known.

  5. Upgrade custom modules and overrides

    Update each custom module, override and community module to a version that supports 0.31, then rebuild assets and clear caches. Check that every module you depend on has a release for the target version before you start this step, because abandoned modules can block the upgrade. The step is done when the application starts with all modules loaded and no deprecation or load errors appear in the logs. Rollback point: pin each module to its previous version in the lockfile so you can revert module by module.

  6. Run automated and manual tests

    Run the automated test suite for your custom modules and the core application, then walk through the workflows your participants and administrators use most: registration, login and verification, creating and voting on proposals, and sending notifications. Record every failure and decide whether it is a code fix, a configuration gap or a module that needs replacing. The step is done when the agreed test list passes on staging and the manual checks are signed off by the business owner. Rollback point: any blocking defect keeps production on 0.30 until it is fixed and retested on staging.

  7. Cut over to production

    Schedule the cutover with the people who own participant communications, announce the maintenance window, and place the site in maintenance mode. Take a final database backup, apply the same upgrade steps you verified on staging, run the data migration status check, and then reopen the site. The step is done when the production status check is clean, smoke tests pass and the version record shows 0.31. Rollback point: the final backup and the retained 0.30 deployment let you restore the previous state if a critical defect appears during the agreed observation period.

How the parts move during the upgrade

The upgrade starts with a verified backup of the production database and files, then moves to a staging rebuild that mirrors production. Schema migrations and Decidim data migrations run in staging first, followed by the tests for custom modules and overrides. The go or no-go decision is the key hand-off: only a clean run in staging leads to production cutover, and if production fails, the team returns to the backup as the rollback path.

Phases of the upgrade, from backup through the go or no-go decision to cutover or rollback.

How custom modules and overrides break during the move

Custom views, patched classes and community modules are the most likely failure points in a 0.30 to 0.31 move, because they depend on internal code paths that core releases are free to change. A Decidim core upgrade can complete without errors and still leave a site broken, since an override copied from an older template or a patch that reopens a core class will continue to load while silently diverging from the code it replaces. Start by listing every override under your application's decorators, view overrides and initializers, plus every community module in your Gemfile, and record for each one which core file or class it touches. That inventory is the work list for the upgrade, and it is far easier to build while the 0.30 install is still running.

Core 0.31 can break custom code in three ways: a method or partial you overrode is renamed, moved or given new arguments, a template changed its markup so a copied view no longer matches, or a database change alters a model your decorator depends on. Each of these shows up differently. Some fail at boot, some only on one page, and some only when a specific workflow runs. Read the release notes and the upgrade instructions for each intermediate step against your inventory, then run your full test suite on a staging copy restored from a recent backup. Add tests for any override that has none, focusing on pages and forms your participants use most, before you rely on the suite to catch regressions.

Community modules need a separate check. Confirm in each module's repository or release notes that it supports Decidim 0.31 and the Ruby 3.3.4 and Node 22.14.x versions this release uses, and ask the maintainer directly if the answer is unclear. If a module is abandoned, you need a decision before the upgrade starts: fork and maintain it yourself, replace its function with a supported module or a rebuilt custom module, or remove the feature and communicate the change to administrators. Budget for that decision to take longer than the technical fix, because it affects scope, ownership and who maintains the code after go-live.

How to test the upgrade and roll back if it fails

Staging should be a copy of production that is close enough to expose upgrade problems. Restore a recent production database into it, use the same file storage layout, background job setup, SMTP and social login configuration, and run the upgrade exactly as the release instructions describe. Then test the paths participants and administrators use most, not only the home page. The upgrade guide asks you to back up the database first, so confirm the restored copy is complete before you start.

  • Core participation flows: create and edit a proposal, comment, vote, and sign in through each login method you actually offer.
  • Administration: open the admin panel, edit a space, publish a component and confirm that permissions still apply.
  • Background work: confirm that jobs run, emails leave through SMTP and uploaded files load from storage.
  • Data migration output: check the records the upgrade changed against the release notes and your own sample of records.
  • Rebuild check: repeat the upgrade from the same backup to confirm the steps are repeatable.

Record each result with the release tag, the Ruby and Node versions in use, and the time each step took, so the production run can be scheduled from evidence.

What makes a Decidim 0.31 upgrade take longer

This table compares the factors that move the effort of a Decidim 0.30 to 0.31 upgrade up or down, with the direction of each driver and what to ask for in a quote. Read each row as a question to answer about your own install before you agree a scope, because the largest drivers are usually custom code and the number of environments you must rehearse.

DriverWhy it changes effortWhat to ask for in a quote
Overrides and monkey patchesEach overridden view or patched class must be checked against 0.31 changes, and breakage often appears only in rendered pages. More overrides usually mean more effort.A count and list of overrides and patched classes, and how the quote covers testing each one.
Community modulesEach third-party module must support 0.31 or be replaced or forked. Abandoned modules add decisions and rework.Confirmation of each module's 0.31 compatibility status and the plan for any module without support.
Custom data migrationsCustom data migrations written for your modules must run against 0.31 and be verified on a copy of production data. More migrations usually mean more effort.A list of custom migrations, the test approach and who reviews the results.
Database sizeLarger databases lengthen the backup, restore and migration runs, and make rehearsals slower. Backups are required before the upgrade.The database size, the backup method and the restore test included in the scope.
Organizations on one installEach organization on a shared install may have its own configuration, branding, modules and data, so each must be checked after the upgrade.The number of organizations, which are in scope for testing, and the sign-off for each one.
Integrations such as SSO and mapsLogin providers, geocoding, email, storage and other integrations must be reconfirmed after the upgrade. Each one needs its own test.A list of integrations and the test cases for each, including social login providers.
Container or manual deploymentContainer builds, images and Rails stack configuration each need their own update and checks. The deployment method sets the change steps.Which deployment method is in use and the steps the quote covers for building and deploying.
Environments to rehearseEach environment, such as development, staging and production, may need its own rehearsal. Fewer rehearsals usually mean less effort but more risk.The list of environments, the number of rehearsal runs and the rollback test included.

Questions teams ask before upgrading Decidim to 0.31

What does a Decidim 0.30 to 0.31 upgrade cost?

No price is published for this work, and DeployOpen does not publish a price list. The quote follows from a written scope. The main cost components are the discovery and inventory of your install, the upgrade itself in a staging copy, custom code and community module work, data migration checks, testing, and the production cutover. Costs rise with the number of custom modules, overrides, third-party components, integrations (identity providers, maps, storage, SMTP) and the size of the database. Ask for the cost split between one-time work and any recurring support or retainer, and ask what is excluded, such as hosting changes or a later move to 0.32.

How long does a Decidim 0.31 upgrade take?

No duration is fixed by the release material, so the timeline depends on your installation. The biggest drivers are how many custom modules and overridden views you run, whether community modules already support 0.31, how much data the migrations touch, and how many staging rehearsals your change process requires. Upgrades with few customizations and a clean staging run move faster than installs with many overrides or unresolved module issues. Ask for a schedule with explicit checkpoints: inventory, staging upgrade, test results, production window and rollback plan.

What does our team need to provide for the upgrade?

The work needs named people and access before it starts. Expect to provide a staging environment that mirrors production, a recent copy of the database, access to the code repository and deployment pipeline, a list of custom modules, overrides and integrations, and the contacts who approve downtime. You also need a decision owner for the functional checks, since someone who knows your participatory processes must confirm that proposals, voting and verification still behave as expected. Confirm backup and restore procedures in your own environment before any change window.

Can our internal team run the Decidim 0.31 upgrade themselves?

Yes, if your team has Ruby on Rails and PostgreSQL experience and can follow the release's upgrade instructions. The update guide asks you to upgrade one minor version at a time, back up the database first, and follow each release's instructions because some changes alter database structures. The 0.31 line expects Ruby 3.3.4 and Node 22.14.x, so your build images and tooling must match. Teams that run it internally usually need time to test custom code and to learn the data migration commands. Compare that effort with a fixed-scope engagement, where scope and deliverables are agreed in writing before work starts.

What happens if a community module does not support Decidim 0.31?

You have three options: wait for a compatible release, adapt the module yourself, or replace its functionality. Check each third-party module against the 0.31 release before scheduling the upgrade, because an unsupported module can block the staging run. Adapting a module means changes to its code and its tests, which adds effort and ongoing maintenance for your team. Replacing it may need a custom module or a change to your participation process. Abandoned modules carry the most risk, so decide early whether to keep, fork or drop each one.

Must we move from Decidim 0.31 to 0.32 right after?

The release material does not require an immediate move, but the support window is short. Decidim supports only the last two minor versions with security updates until version 1.0, which currently means 0.32.x and 0.31.x, and 0.30.x and earlier are not supported. Once 0.32 is the newer line, 0.31 will eventually fall out of support, so plan the next step while you have the 0.31 install in front of you. Also note that 0.32 requires Ruby 3.4.7 and Rails 8.1 changes. Ask your team to confirm the support dates in the Decidim security policy and in your own risk register.

Why must we back up the database before upgrading Decidim?

The update guide says to back up the database first because some minor-version upgrades change database structures and data. A backup is the only reliable way to return to the previous state if a migration fails or a custom module misbehaves on new data. Your backup plan should be tested by restoring it into a separate environment, not just by confirming a backup file exists. Confirm retention rules, encryption and who may restore, especially if the platform holds personal data from participants.

Where to confirm 0.31 requirements

Treat the Decidim update documentation as the authority on what a 0.31 upgrade requires, not this page or any summary, including the Ruby and Node versions. The supplied facts list Ruby 3.3.4 and Node 22.14.x for the 0.31 line and note that the update guide asks you to upgrade one minor version at a time, so start from Updating Decidim and read each step in the chain against the release it belongs to. Then check the exact release notes and upgrade instructions for every version you pass through, from your current release up to 0.31.x. Each release can change database structures or required configuration, and a step you skip is a step you will discover in production. Record the version you confirmed and the date you checked it, because the 0.31 branch has moved on since its first release and your team will need that record when someone asks why a particular Ruby build was chosen.

Use the security policy to decide how long the 0.31 line is worth staying on. The project's SECURITY.md states that, until version 1.0, only the last two minor versions receive security updates, and the supplied facts place 0.32.x and 0.31.x in that window while 0.30.x and earlier are unsupported. Confirm that window on the day you plan the work, because it moves with each minor release. Also confirm the patch-timing rules in the same file: implementers get a grace period before vulnerability details are disclosed, and reports go to security@decidim.org or GitHub Security Advisories. Ask your team to subscribe to the Decidim releases feed so that a fix on the 0.31 branch reaches your change calendar rather than your next audit.

How DeployOpen works on this

DeployOpen treats the move from Decidim 0.30 to 0.31 as a planned, written-scope upgrade inside your own infrastructure. We start from your installed modules, overrides and data, then build and test the upgrade in a staging copy before anything reaches production. The result is a documented platform your team can operate and a clear path for ongoing support.

How we scope

  • Inventory your Decidim version, Ruby and Node setup, database, custom modules and community modules before quoting.
  • Agree in writing which 0.31 release notes, upgrade steps and data migrations are in the work.
  • Confirm the target 0.31 patch level and who approves the production change window.

How we build

  • Move to 0.31 in a staging copy using the upgrade instructions for that release, not a generic checklist.
  • Move the runtime to Ruby 3.3.4 and Node 22.14.x and test background jobs, mail and file storage.
  • Run the data migration commands on a restored backup and record their output and any failures.

How we hand over

  • Deliver the upgrade runbook, rollback steps and a record of every custom change tested.
  • Provide test results for custom modules, social login and verification flows on the new version.
  • Walk your operations and development staff through the new commands and the checks they should repeat.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope work ends.
  • Plan the next minor upgrade step with you, since Decidim supports only the last two minor versions with security updates.
  • Confirm with your team which security reporting route and patch window will apply to your installation.

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.