Class: TrackerJacker::Generators::MigrationGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/generators/tracker_jacker/migration/migration_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_filesObject

Create migration in project’s folder



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

def generate_files
  migration_template 'migration.rb', "db/migrate/#{name}.rb"
end