summaryrefslogtreecommitdiff
path: root/db/migrate/20130805064700_change_rfc2833_profile_parameter.rb
blob: 78b235004104365e80d85206e989e078ce77e6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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