diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-12 11:53:21 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-12 11:53:21 +0100 |
commit | ec342d3d91d2cfa8c210722354353cfe8a90a8bc (patch) | |
tree | fa554d5db15f60abafe0e3da806da756114e5e4b /db/migrate | |
parent | 2e3bddd415f03aa15cd2759d7c18f64d5545ea80 (diff) |
Add PROVISIONING_KEY_LENGTH as a GsParameter value. #73
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130112103337_set_new_value_for_provisioning_key_length.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130112103337_set_new_value_for_provisioning_key_length.rb b/db/migrate/20130112103337_set_new_value_for_provisioning_key_length.rb new file mode 100644 index 0000000..06d0ee8 --- /dev/null +++ b/db/migrate/20130112103337_set_new_value_for_provisioning_key_length.rb @@ -0,0 +1,9 @@ +class SetNewValueForProvisioningKeyLength < ActiveRecord::Migration + def up + GsParameter.create(:entity => nil, :section => 'Provisioning', :name => 'PROVISIONING_KEY_LENGTH', :value => '12', :class_type => 'Integer') + end + + def down + GsParameter.where(:name => 'PROVISIONING_KEY_LENGTH').destroy_all + end +end |