Class: Cache::Database::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cache::Database::Generators::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/cache/database/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
12 13 14 15 |
# File 'lib/generators/cache/database/install_generator.rb', line 12 def self.next_migration_number(path) next_migration_number = current_migration_number(path) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end |
Instance Method Details
#copy_migrations ⇒ Object
17 18 19 20 |
# File 'lib/generators/cache/database/install_generator.rb', line 17 def copy_migrations migration_template 'create_table_for_cache.rb', 'db/migrate/create_cache_database.rb' migration_template 'add_cache_compression_column.rb', 'db/migrate/add_cache_compression_column.rb' end |