diff options
author | Peter Kozak <spag@golwen.net> | 2013-05-31 14:38:46 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-05-31 14:38:46 +0200 |
commit | cc6b71ffef4d781890cf7eef64ded71abb099a7f (patch) | |
tree | 70e4d3ca3155dedbb419433531ad3c6b40fe694f /db | |
parent | c74e6de15e4c43d7fc28fa00a1994ef44a4541a0 (diff) |
report_url added
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130530123600_add_perimeter_report_url.rb | 9 |
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 |