summaryrefslogtreecommitdiff
path: root/db/migrate/20130530123600_add_perimeter_report_url.rb
blob: 4b51b006e7bfb7c26a735e14aaf4033396efd852 (plain)
1
2
3
4
5
6
7
8
9
class AddPerimeterReportUrl < ActiveRecord::Migration
  def up
    GsParameter.create(:entity => 'perimeter', :section => 'general', :name => 'report_url', :value => 'http://fire-support.herokuapp.com/intruders/{received_ip}/report.xml?serial={serial}&blacklisted={blacklisted}&suspicious=true', :class_type => 'String', :description => '')
  end

  def down
  	GsParameter.where(:entity => 'perimeter', :section => 'general', :name => 'report_url').destroy_all
  end
end