From 69e8fdda8c745ec4c7ed52412c1e96276fbbca88 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Mon, 5 Aug 2013 08:52:45 +0200 Subject: change rfc2833 profile parameter --- .../20130805064700_change_rfc2833_profile_parameter.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/migrate/20130805064700_change_rfc2833_profile_parameter.rb (limited to 'db') 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 -- cgit v1.2.3