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
This commit is contained in:
1 parent
fb9a87f53e
commit
ab066317e6
16 files changed
+500
-449
No files matched your search
@@ -0,0 +1,9 @@
|
||||
class AddQueriesType < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :queries, :type, :string
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :queries, :type
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
Reference in new issue
Block a user