diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-09 14:10:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-09 14:10:49 +0000 |
commit | ab066317e62b3a6082fc82ba57915ed02f0f6699 (patch) | |
tree | 7889bbe8150f7aa9ed03a8970e9c999e33e378f1 /db/migrate/20121209123358_update_queries_to_sti.rb | |
parent | fb9a87f53ecd1bce3afef08cea0237e227cd400d (diff) | |
download | redmine-ab066317e62b3a6082fc82ba57915ed02f0f6699.tar.gz redmine-ab066317e62b3a6082fc82ba57915ed02f0f6699.zip |
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
Diffstat (limited to 'db/migrate/20121209123358_update_queries_to_sti.rb')
-rw-r--r-- | db/migrate/20121209123358_update_queries_to_sti.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |