summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-05 08:52:45 +0200
committerPeter Kozak <spag@golwen.net>2013-08-05 08:52:45 +0200
commit69e8fdda8c745ec4c7ed52412c1e96276fbbca88 (patch)
tree19709eca6fd999b5815d6654b9d34248b4fa6e8b /db
parent5b10aa9fb1bcbdbb1fab659aa781a8d53b453538 (diff)
change rfc2833 profile parameter
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130805064700_change_rfc2833_profile_parameter.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20130805064700_change_rfc2833_profile_parameter.rb b/db/migrate/20130805064700_change_rfc2833_profile_parameter.rb
new file mode 100644
index 0000000..78b2350
--- /dev/null
+++ b/db/migrate/20130805064700_change_rfc2833_profile_parameter.rb
@@ -0,0 +1,15 @@
+class ChangeRfc2833ProfileParameter < ActiveRecord::Migration
+ def up
+ pass_rfc2833 = GsParameter.where(:entity => 'sofia', :section => 'profile', :name => 'pass-rfc2833').first
+ if pass_rfc2833
+ pass_rfc2833.update_attributes(:value => 'false')
+ end
+ end
+
+ def down
+ pass_rfc2833 = GsParameter.where(:entity => 'sofia', :section => 'profile', :name => 'pass-rfc2833').first
+ if pass_rfc2833
+ pass_rfc2833.update_attributes(:value => 'true')
+ end
+ end
+end