suitepro/db/migrate/20121209123358_update_queries_to_sti.rb
2020-11-22 21:20:06 +01:00

9 lines
174 B
Ruby

class UpdateQueriesToSti < ActiveRecord::Migration[4.2]
def up
::Query.update_all :type => 'IssueQuery'
end
def down
::Query.update_all :type => nil
end
end