20121209123358_update_queries_to_sti.rb
9 lines
| 169 B
| text/x-ruby
|
RubyLexer
|
r10737 | class UpdateQueriesToSti < ActiveRecord::Migration | ||
def up | ||||
::Query.update_all :type => 'IssueQuery' | ||||
end | ||||
def down | ||||
::Query.update_all :type => nil | ||||
end | ||||
end | ||||