summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-12 18:06:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-12 18:06:54 +0000
commitc7c8dc71f2fc8f224deb0a5340f7bbb8906e584d (patch)
treede3c8964542f8bb72cef67f462df910c4e6446f7 /db/migrate
parent2b585407cb66a26f81ea0bcb8a922dd1203e25e0 (diff)
downloadredmine-c7c8dc71f2fc8f224deb0a5340f7bbb8906e584d.tar.gz
redmine-c7c8dc71f2fc8f224deb0a5340f7bbb8906e584d.zip
Ability to save "sort order" in custom queries (#2899).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2572 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20090312172426_add_queries_sort_criteria.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090312172426_add_queries_sort_criteria.rb b/db/migrate/20090312172426_add_queries_sort_criteria.rb
new file mode 100644
index 000000000..743ed42ff
--- /dev/null
+++ b/db/migrate/20090312172426_add_queries_sort_criteria.rb
@@ -0,0 +1,9 @@
+class AddQueriesSortCriteria < ActiveRecord::Migration
+ def self.up
+ add_column :queries, :sort_criteria, :text
+ end
+
+ def self.down
+ remove_column :queries, :sort_criteria
+ end
+end