Class: MoRecord::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MoRecord::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/mo_record/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dir) ⇒ Object
15 16 17 |
# File 'lib/generators/mo_record/install_generator.rb', line 15 def self.next_migration_number(dir) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#copy_migration ⇒ Object
11 12 13 |
# File 'lib/generators/mo_record/install_generator.rb', line 11 def copy_migration migration_template 'install.rb', 'db/migrate/create_logged_mos.rb' end |