diff options
author | spag <spag@golwen.net> | 2013-01-09 19:39:53 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-09 19:39:53 +0100 |
commit | b1fad77507c71402d25f085c048848462c2d52f1 (patch) | |
tree | 9998c85fbed0f7d3b232703bf845a0d4d87d315d | |
parent | c317b518e0431db624f5e8e66aa00e7d0ff1a291 (diff) |
set odbc-dsn to default
-rw-r--r-- | db/migrate/20130109182800_change_gs_parameter_odbc_defaults.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20130109182800_change_gs_parameter_odbc_defaults.rb b/db/migrate/20130109182800_change_gs_parameter_odbc_defaults.rb new file mode 100644 index 0000000..1958c44 --- /dev/null +++ b/db/migrate/20130109182800_change_gs_parameter_odbc_defaults.rb @@ -0,0 +1,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 |