diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130805064700_change_rfc2833_profile_parameter.rb | 15 |
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 |