Class: Batchy::ActiveRecordGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



11
12
13
# File 'lib/generators/batchy/active_record_generator.rb', line 11

def create_migration_file
  migration_template 'migration.rb', 'db/migrate/create_batchy_batches.rb'
end