# Bug OP-12517 - MyProjectPageToGrid migration fails

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-12517

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.5 |
| Observed in versions |  |
| Sprint | 12.5.5 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Checkout OpenProject 10, and init and seed the database
2.  Checkout OpenProject 12 and try to migrate

### What is the buggy behavior?

``` text
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

undefined method `include_subprojects=' for #<Query id: nil, project_id: 226, name: "_", filters: [#<Queries::WorkPackages::Filter::StatusFilter:0x00007f8bb70c7ac0 @name=:status_id, @context=#<Query id: nil, project_id: 226, name: "_", filters: [...], user_id: 58, is_public: true, column_names: [], sort_criteria: [["id", "asc"]], group_by: nil, display_sums: false, timeline_visible: false, show_hierarchies: true, timeline_zoom_level: "days", timeline_labels: {}, highlighting_mode: nil, highlighted_attributes: [], hidden: true>, @operator="o", @values=[""]>], user_id: 58, is_public: true, column_names: [], sort_criteria: [["id", "asc"]], group_by: nil, display_sums: false, timeline_visible: false, show_hierarchies: true, timeline_zoom_level: "days", timeline_labels: {}, highlighting_mode: nil, highlighted_attributes: [], hidden: true>
/opt/openproject/app/models/query.rb:68:in `block in new_default'
```

The migration failes with the error above.

### What is the expected behavior?

The migration should work.

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

v.12.5.2
