summaryrefslogtreecommitdiff
path: root/db/migrate/20130109182800_change_gs_parameter_odbc_defaults.rb
blob: 1958c44e95aefe5e3387201e809d6b4d8a4621cd (plain)
1
2
3
4
5
6
7
8
9
10
11
class ChangeGsParameterOdbcDefaults < ActiveRecord::Migration
  def up
    GsParameter.where(:entity => 'sofia', :section => 'profile:gemeinschaft', :name => 'odbc-dsn').destroy_all
    GsParameter.create(:entity => 'sofia', :section => 'profile:gemeinschaft', :name => 'odbc-dsn',  :value => 'default', :class_type => 'String')
  end

  def down
    GsParameter.where(:entity => 'sofia', :section => 'profile:gemeinschaft', :name => 'odbc-dsn').destroy_all
    GsParameter.create(:entity => 'sofia', :section => 'profile:gemeinschaft', :name => 'odbc-dsn',  :value => 'gemeinschaft:gemeinschaft:gemeinschaft', :class_type => 'String')
  end
end