Class: DbCacheStore::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- DbCacheStore::Generators::InstallGenerator
- Defined in:
- lib/generators/db_cache_store/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_migration ⇒ Object
6 7 8 |
# File 'lib/generators/db_cache_store/install/install_generator.rb', line 6 def generate_migration copy_file "migration.rb", "db/migrate/#{DateTime.now.strftime("%Y%m%d%H%M%S")}_create_db_caches.rb" end |