summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-12 08:19:00 +0100
committerspag <spag@golwen.net>2013-02-12 08:19:00 +0100
commitd1145ad9d4f495d7416ed97e0dd3c17365990323 (patch)
tree044884668100ba911188cf20d67ede7cc0a23ab5 /db/migrate
parent62ac01a8ea536718734bd911fc3642c0bd8b6bc7 (diff)
create profile template
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130212071000_default_profile_to_template.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20130212071000_default_profile_to_template.rb b/db/migrate/20130212071000_default_profile_to_template.rb
new file mode 100644
index 0000000..d3fd89c
--- /dev/null
+++ b/db/migrate/20130212071000_default_profile_to_template.rb
@@ -0,0 +1,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