summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-10 21:58:54 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-10 21:58:54 +0100
commit878412b12dd34004d37b8b79945786e506f8fa08 (patch)
tree23048e74ac7f0eecc9f99bea757be66de322aab8 /db/migrate
parentc0dfdfce54b2e698580893d18ea101ecaab89aad (diff)
parent9f0034ff3c969c867258a90d1a9c6f76f392092a (diff)
Merge branch 'refactor_tenant_view' into develop
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130110205056_add_number_of_shown_items_to_gs_parameter.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130110205056_add_number_of_shown_items_to_gs_parameter.rb b/db/migrate/20130110205056_add_number_of_shown_items_to_gs_parameter.rb
new file mode 100644
index 0000000..72b477a
--- /dev/null
+++ b/db/migrate/20130110205056_add_number_of_shown_items_to_gs_parameter.rb
@@ -0,0 +1,9 @@
+class AddNumberOfShownItemsToGsParameter < ActiveRecord::Migration
+ def up
+ GsParameter.create(:name => 'NUMBER_OF_SHOWN_ITEMS', :section => 'Views', :value => '10', :class_type => 'Integer')
+ end
+
+ def down
+ GsParameter.where(:name => 'NUMBER_OF_SHOWN_ITEMS').destroy_all
+ end
+end