{
  "schemaVersion": "ebb.rule.v1",
  "id": "ruby.gem.rails-8.0.scheduled-end-of-life",
  "ecosystem": "ruby",
  "purl": "pkg:gem/rails",
  "affectedVersions": "vers:gem/>=8.0.0|<8.1.0",
  "event": "scheduled-end-of-life",
  "severity": "low",
  "title": "Rails 8.0 security support is scheduled to end",
  "summary": "The Rails maintenance policy says Rails 8.0.x receives security fixes until 2026-11-07. Rails 8.1.x is the newer supported release series.",
  "replacement": "Rails 8.1.x",
  "deadline": "2026-11-07",
  "sources": [
    {
      "title": "Ruby on Rails maintenance policy",
      "url": "https://rubyonrails.org/maintenance",
      "accessedAt": "2026-10-23"
    },
    {
      "title": "Upgrading Ruby on Rails",
      "url": "https://guides.rubyonrails.org/upgrading_ruby_on_rails.html",
      "accessedAt": "2026-10-23"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-23",
    "reviewedAt": "2026-10-23",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Preserve application behavior and public interfaces while applying the official Rails 8.1 upgrade section.",
      "Keep the Gemfile requirement and every Gemfile.lock on the same Rails 8.1 release series."
    ],
    "steps": [
      {
        "id": "update-rails-declaration",
        "title": "Upgrade Rails to 8.1",
        "instructions": "Set Rails to the latest 8.1 patch in the Gemfile and run `bundle update rails` to refresh every Gemfile.lock.",
        "targets": "declaration"
      },
      {
        "id": "apply-rails-upgrade-guide",
        "title": "Apply the Rails 8.1 upgrade section",
        "instructions": "Follow the official 8.0-to-8.1 section and resolve each listed behavior change before enabling the Rails 8.1 framework defaults.",
        "targets": "all"
      },
      {
        "id": "update-framework-defaults",
        "title": "Review the Rails 8.1 defaults",
        "instructions": "Run `bin/rails app:update`, review every generated change, enable the new framework defaults gradually, and update `config.load_defaults` only after the application is ready.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "bundle check",
        "purpose": "Confirm the updated Rails dependency set is installed and consistent."
      },
      {
        "command": "bin/rails test",
        "purpose": "Run the Rails test suite after the upgrade."
      },
      {
        "command": "bin/rails runner 'puts Rails.version'",
        "purpose": "Confirm the application boots on Rails 8.1."
      }
    ]
  }
}
