diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-26 01:25:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-26 01:25:23 +0000 |
commit | 113f8b5cf278ff32bd55bf63aafe11c3f5a085f1 (patch) | |
tree | 0f3fc20120aa01c3f32e53874dbb89d009220921 /db | |
parent | a679d19709cfbb935b18b66b779ac315b2d3f845 (diff) | |
download | redmine-113f8b5cf278ff32bd55bf63aafe11c3f5a085f1.tar.gz redmine-113f8b5cf278ff32bd55bf63aafe11c3f5a085f1.zip |
Adds a textual css class for issue priorities (#12216).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10720 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20121026002032_add_enumerations_position_name.rb | 9 | ||||
-rw-r--r-- | db/migrate/20121026003537_populate_enumerations_position_name.rb | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20121026002032_add_enumerations_position_name.rb b/db/migrate/20121026002032_add_enumerations_position_name.rb new file mode 100644 index 000000000..52cbe08eb --- /dev/null +++ b/db/migrate/20121026002032_add_enumerations_position_name.rb @@ -0,0 +1,9 @@ +class AddEnumerationsPositionName < ActiveRecord::Migration + def up + add_column :enumerations, :position_name, :string, :limit => 30 + end + + def down + remove_column :enumerations, :position_name + end +end diff --git a/db/migrate/20121026003537_populate_enumerations_position_name.rb b/db/migrate/20121026003537_populate_enumerations_position_name.rb new file mode 100644 index 000000000..31777b75f --- /dev/null +++ b/db/migrate/20121026003537_populate_enumerations_position_name.rb @@ -0,0 +1,9 @@ +class PopulateEnumerationsPositionName < ActiveRecord::Migration + def up + IssuePriority.compute_position_names + end + + def down + IssuePriority.clear_position_names + end +end |