Class: AhoyCaptain::Generators::MigrationGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_templatesObject



10
11
12
# File 'lib/generators/ahoy_captain/migration_generator.rb', line 10

def copy_templates
  migration_template "migration.rb", "db/migrate/create_ahoy_captain_indexes.rb", migration_version: migration_version
end