class CreateEncryptionKeys

Public Instance Methods

change() click to toggle source
# File lib/generators/encrypted_store/install/templates/create_encryption_keys.rb, line 2
def change
  create_table :encryption_keys do |t|
    t.binary  :dek
    t.boolean :primary

    t.timestamps
  end

  add_index :encryption_keys, :created_at
end