Class: Pgbus::Generators::AddProcessedEventCompletionGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pgbus::Generators::AddProcessedEventCompletionGenerator
- Includes:
- ActiveRecord::Generators::Migration, MigrationPath
- Defined in:
- lib/generators/pgbus/add_processed_event_completion_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
23 24 25 26 |
# File 'lib/generators/pgbus/add_processed_event_completion_generator.rb', line 23 def create_migration_file migration_template "add_processed_event_completion.rb.erb", File.join(pgbus_migrate_path, "add_pgbus_processed_event_completion.rb") end |
#display_post_install ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/generators/pgbus/add_processed_event_completion_generator.rb', line 28 def display_post_install say "" say "Pgbus two-phase idempotency claim migration installed!", :green say "" say "Next steps:" say " 1. Run: rails db:migrate#{migrate_command_suffix}" say " 2. Restart pgbus: bin/pgbus start" say "" end |