summaryrefslogtreecommitdiff
path: root/db/migrate/20130212071000_default_profile_to_template.rb
blob: d3fd89c62454f907b494ccf9b47da92d917a6a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class DefaultProfileToTemplate < ActiveRecord::Migration
  def up
    GsParameter.where(:entity => 'sofia', :section => 'profile:gemeinschaft').each do |profile|
      profile.update_attributes(:section => 'profile')
    end
  end

  def down
  	GsParameter.where(:entity => 'sofia', :section => 'profile').each do |profile|
      profile.update_attributes(:section => 'profile:gemeinschaft')
    end
  end
end