summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20130530123600_add_perimeter_report_url.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130530123600_add_perimeter_report_url.rb b/db/migrate/20130530123600_add_perimeter_report_url.rb
new file mode 100644
index 0000000..4b51b00
--- /dev/null
+++ b/db/migrate/20130530123600_add_perimeter_report_url.rb
@@ -0,0 +1,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