blob: bb99acec7e0d1bb3bdfd993f94eae9aec77fb0e3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class AddSecretTokenToGsParameter < ActiveRecord::Migration
def up
require 'securerandom'
GsParameter.create(:name => 'SECRET_TOKEN', :section => 'Cookies', :value => SecureRandom.hex(64), :class_type => 'String')
end
def down
GsParameter.where(:name => 'SECRET_TOKEN').destroy_all
end
end
|