• Eric Davis's avatar
    Changed Enumerations to use a Single Table Inheritance · 62e58f26
    Eric Davis authored
    * Added migrations to change Enumerations to an STI relationship
    * Added TimeEntryActivity model (STI)
    * Added DocumentCategory model (STI)
    * Added IssuePriority model (STI)
    * Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration
    * Changed Enumeration to use the STI type field instead of the opt field
    * Changed Enumeration#opt to return the old opt values but with a deprecation warning.
    * Removed Enumeration::OPTIONS
    * Removed the dynamic named_scopes in favor of specific named_scopes.  Kept for
      compatibility reasons.
    * Added Enumeration#default so each subclass can easily find it's default record.
    * Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default.
    * Added a 'all' named scope for getting all records in order by position.
    * Added Deprecation warnings to the old named_scopes in Enumerations.
    * Moved various methods off of Enumeration and onto the concrete classes
    * Changed the EnumerationsController to use types
    * Updated the Enumeration list template
    * Added has_many relationships to the Enumeration STI classes.
    * Fixes for tests.
    
      #3007
    
    git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
    62e58f26
Name
Last commit
Last update
..
diffs Loading commit data...
files Loading commit data...
mail_handler Loading commit data...
repositories Loading commit data...
attachments.yml Loading commit data...
auth_sources.yml Loading commit data...
boards.yml Loading commit data...
changes.yml Loading commit data...
changesets.yml Loading commit data...
comments.yml Loading commit data...
custom_fields.yml Loading commit data...
custom_fields_projects.yml Loading commit data...
custom_fields_trackers.yml Loading commit data...
custom_values.yml Loading commit data...
documents.yml Loading commit data...
enabled_modules.yml Loading commit data...
enumerations.yml Loading commit data...
issue_categories.yml Loading commit data...
issue_statuses.yml Loading commit data...
issues.yml Loading commit data...
journal_details.yml Loading commit data...
journals.yml Loading commit data...
member_roles.yml Loading commit data...
members.yml Loading commit data...
messages.yml Loading commit data...
news.yml Loading commit data...
projects.yml Loading commit data...
projects_trackers.yml Loading commit data...
queries.yml Loading commit data...
repositories.yml Loading commit data...
roles.yml Loading commit data...
time_entries.yml Loading commit data...
tokens.yml Loading commit data...
trackers.yml Loading commit data...
user_preferences.yml Loading commit data...
users.yml Loading commit data...
versions.yml Loading commit data...
watchers.yml Loading commit data...
wiki_content_versions.yml Loading commit data...
wiki_contents.yml Loading commit data...
wiki_pages.yml Loading commit data...
wikis.yml Loading commit data...
workflows.yml Loading commit data...