Class: Bodega::Generators::ProductizeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/bodega/productize/productize_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_migrationObject



14
15
16
# File 'lib/generators/bodega/productize/productize_generator.rb', line 14

def copy_migration
  migration_template("migration.rb", "db/migrate/productize_#{product_name.tableize}")
end