Class: EncryptedStore::Generators::EncryptTableGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/encrypted_store/encrypt_table/encrypt_table_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migrationsObject



7
8
9
# File 'lib/generators/encrypted_store/encrypt_table/encrypt_table_generator.rb', line 7

def create_migrations
  generate "migration", "add_encrypted_store_to_#{table_name} encryption_key_id:integer encrypted_store:binary"
end