Class: PostPusher::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PostPusher::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/post_pusher/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
8 9 10 |
# File 'lib/generators/post_pusher/install/install_generator.rb', line 8 def self.next_migration_number(path) Time.now.utc.to_s(:number) end |
Instance Method Details
#copy_migrations ⇒ Object
12 13 14 |
# File 'lib/generators/post_pusher/install/install_generator.rb', line 12 def copy_migrations copy_migration "create_post_push_status" end |