summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 11:53:21 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 11:53:21 +0100
commitec342d3d91d2cfa8c210722354353cfe8a90a8bc (patch)
treefa554d5db15f60abafe0e3da806da756114e5e4b /db
parent2e3bddd415f03aa15cd2759d7c18f64d5545ea80 (diff)
Add PROVISIONING_KEY_LENGTH as a GsParameter value. #73
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130112103337_set_new_value_for_provisioning_key_length.rb9
-rw-r--r--db/schema.rb2
2 files changed, 10 insertions, 1 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
diff --git a/db/schema.rb b/db/schema.rb
index cc5afcc..a6aae9b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130112074800) do
+ActiveRecord::Schema.define(:version => 20130112103337) do
create_table "access_authorizations", :force => true do |t|
t.string "access_authorizationable_type"