Class: SimpleForexGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/generators/simple_forex/simple_forex_generator.rb

Overview

This generator adds a migration for the FriendlyId::History addon.

Instance Method Summary collapse

Instance Method Details

#copy_filesObject

Copies the migration template to db/migrate.



17
18
19
20
# File 'lib/generators/simple_forex/simple_forex_generator.rb', line 17

def copy_files
  return if options["skip-migration"]
  migration_template "migration.rb", "db/migrate/create_currencies.rb"
end