Project

General

Profile

Actions

Feature #3007

closed

Convert Enumerations to single table inheritance (STI)

Added by Eric Davis about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2009-03-18
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed

Description

I think Redmine's outgrown it's current Enumeration class and it's time to move Enumerations to a STI class. This should remove a lot of the code around Enumeration options and make the internal API cleaner:

  • Enumerations.activities => Activity.all
  • Enumerations.priorities => Priority.all

Files

enumeration-sti.patch (35.8 KB) enumeration-sti.patch Patch to convert Enumerations to STI - for review Eric Davis, 2009-03-25 22:50
enumeration-sti-3.patch (42.8 KB) enumeration-sti-3.patch Latest conversion of Enumerations to an STI class Eric Davis, 2009-04-02 00:45
enumeration-sti-4.patch (42.8 KB) enumeration-sti-4.patch Patch through d33663afac0b833ea18449047459aa6932c6a04d Eric Davis, 2009-04-02 02:16
Actions

Also available in: Atom PDF