From ab066317e62b3a6082fc82ba57915ed02f0f6699 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 Dec 2012 14:10:49 +0000 Subject: Adds STI to Query model. Issue queries are now IssueQuery instances. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10964 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/20121209123358_update_queries_to_sti.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20121209123358_update_queries_to_sti.rb (limited to 'db/migrate/20121209123358_update_queries_to_sti.rb') diff --git a/db/migrate/20121209123358_update_queries_to_sti.rb b/db/migrate/20121209123358_update_queries_to_sti.rb new file mode 100644 index 000000000..d8dea4070 --- /dev/null +++ b/db/migrate/20121209123358_update_queries_to_sti.rb @@ -0,0 +1,9 @@ +class UpdateQueriesToSti < ActiveRecord::Migration + def up + ::Query.update_all :type => 'IssueQuery' + end + + def down + ::Query.update_all :type => nil + end +end -- cgit v1.2.3