Class: DurableFlow::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
ActiveRecord::Generators::Migration
Defined in:
lib/generators/durable_flow/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



17
18
19
# File 'lib/generators/durable_flow/install_generator.rb', line 17

def self.next_migration_number(dirname)
  ActiveRecord::Generators::Base.next_migration_number(dirname)
end

Instance Method Details

#copy_migrationObject



13
14
15
# File 'lib/generators/durable_flow/install_generator.rb', line 13

def copy_migration
  migration_template "create_durable_flow_tables.rb", "db/migrate/create_durable_flow_tables.rb"
end