summaryrefslogtreecommitdiff
path: root/db/migrate/20130117142600_change_action_prerouting_table.rb
blob: 8b57ca6432581dd4ffeb112e0ef5320d32a3014e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class ChangeActionPreroutingTable < ActiveRecord::Migration
  def up
    RouteElement.where(:action => 'set_route_var', :mandatory => true).each do |route|
      route.update_attributes(:action => 'match')
    end
  end

  def down
  	RouteElement.where(:action => 'match', :mandatory => true).each do |route|
      route.update_attributes(:action => 'set_route_var')
    end
  end
end