Class: EncryptedStore::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- EncryptedStore::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/encrypted_store/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(*args) ⇒ Object
9 10 11 |
# File 'lib/generators/encrypted_store/install/install_generator.rb', line 9 def next_migration_number(*args) ::ActiveRecord::Generators::Base.next_migration_number(*args) end |
Instance Method Details
#create_initializer ⇒ Object
16 17 18 |
# File 'lib/generators/encrypted_store/install/install_generator.rb', line 16 def create_initializer copy_file "initializer.rb", "config/initializers/encrypted_store.rb" end |
#create_migrations ⇒ Object
20 21 22 23 |
# File 'lib/generators/encrypted_store/install/install_generator.rb', line 20 def create_migrations migration_template 'create_encryption_keys.rb', 'db/migrate/create_encryption_keys.rb' migration_template 'create_encryption_key_salts.rb', 'db/migrate/create_encryption_key_salts.rb' end |