summaryrefslogtreecommitdiff
path: root/db/migrate/20130107222128_set_provisioning_set_http_user.rb
blob: 8066fb9a1200aafd673da33af5588642cd0dbf1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class SetProvisioningSetHttpUser < ActiveRecord::Migration
  def up
    # Provisioning stuff
    #
    GsParameter.create(:name => 'PROVISIONING_SET_HTTP_USER', :section => 'Provisioning', :value => 'admin', :class_type => 'String')
    GsParameter.create(:name => 'PROVISIONING_SET_HTTP_PASSWORD', :section => 'Provisioning', :value => '8', :class_type => 'Integer')
  end

  def down
  	GsParameter.where(:name => 'PROVISIONING_SET_HTTP_USER').destroy_all
  	GsParameter.where(:name => 'PROVISIONING_SET_HTTP_PASSWORD').destroy_all
  end
end