Class: TCB::Generators::OutboxGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TCB::Generators::OutboxGenerator
- Defined in:
- lib/generators/tcb/outbox/outbox_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_job ⇒ Object
16 17 18 |
# File 'lib/generators/tcb/outbox/outbox_generator.rb', line 16 def create_job template "job.rb.tt", "app/jobs/#{job_file_name}.rb" end |
#create_migration ⇒ Object
11 12 13 14 |
# File 'lib/generators/tcb/outbox/outbox_generator.rb', line 11 def create_migration = Time.now.utc.strftime("%Y%m%d%H%M%S") template "migration.rb.tt", "db/migrate/#{}_create_#{table_name}.rb" end |