Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Commit 455e525

Browse files
committed
doc(redmine6): add guide for using ApplicationRecord, refs #pbi-7854
1 parent f62a76e commit 455e525

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

docs/Major_releases/v15.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ for developers and maintainers who need to understand the implications of these
1616

1717
### Major Framework Upgrades
1818

19-
- ruby `">= 3.3.1"``">= 3.3.7", "< 3.4.0"`
19+
- ruby `>= 3.3.1``~> 3.4.0`
2020
- Added upper bound to Ruby version
21-
- rails `"~> 6.1.7.10"``"~> 7.2.2.1"`
21+
- rails `~> 6.1.7.10``7.2.2.1`
2222
- Major framework upgrade
23-
- rack `"~> 2.2.3"``"~> 3.1.3"`
23+
- rack `~> 2.2.3``>= 3.1.3`
2424

2525
### Breaking Changes
2626

@@ -190,6 +190,24 @@ import "../src/easy_legacy_js/context_menu";
190190
- Move legacy JavaScript files to `app/frontend/src/easy_legacy_js/`
191191
- Import them in `app/frontend/entrypoints/easy_legacy_js.js`
192192

193+
#### 2. Inheriting ActiveRecord models from ApplicationRecord
194+
195+
All ActiveRecord models should now inherit from `ApplicationRecord` instead of `ActiveRecord::Base`.
196+
197+
**Before:**
198+
```ruby
199+
class User < ActiveRecord::Base
200+
# ...
201+
end
202+
```
203+
204+
**After:**
205+
```ruby
206+
class User < ApplicationRecord
207+
# ...
208+
end
209+
```
210+
193211
### Recommendations for Upgrading
194212

195213
1. **Test thoroughly** - The framework changes are substantial and require extensive testing

0 commit comments

Comments
 (0)