Class: Occurro::MigrationsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Occurro::MigrationsGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/occurro/migrations/migrations_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_migration ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/occurro/migrations/migrations_generator.rb', line 6 def copy_migration migration_template 'create_occurro_counters.rb', "db/migrate/create_occurro_counters.rb" sleep 1 migration_template 'create_occurro_daily_counters.rb', "db/migrate/create_occurro_daily_counters.rb" end |