Sha256: 1f244fbc683194441db238b7b84b6b890f621cdb66471198279f4e19984e1a9a

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

class AddEncryptionToOrganizations < ActiveRecord::Migration
  def change
    # RSA keys in DER format
    add_column :organizations, :rsa_private_key, :binary, null: false, default: 0
    add_column :organizations, :rsa_public_key, :binary, null: false, default: 0

    # Salt for use with other encryption schemes E.g. AES
    add_column :organizations, :salt, :string, null: false, default: 0
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cyclid-0.4.0 db/migrate/20160325120748_add_encryption_to_organizations.rb
cyclid-0.3.3 db/migrate/20160325120748_add_encryption_to_organizations.rb
cyclid-0.3.2 db/migrate/20160325120748_add_encryption_to_organizations.rb
cyclid-0.3.1 db/migrate/20160325120748_add_encryption_to_organizations.rb
cyclid-0.3.0 db/migrate/20160325120748_add_encryption_to_organizations.rb
cyclid-0.2.5 db/migrate/20160325120748_add_encryption_to_organizations.rb
cyclid-0.2.4 db/migrate/20160325120748_add_encryption_to_organizations.rb