Class: TrackerJacker::Generators::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- TrackerJacker::Generators::MigrationGenerator
- Defined in:
- lib/generators/tracker_jacker/migration/migration_generator.rb
Instance Method Summary collapse
-
#generate_files ⇒ Object
Create migration in project’s folder.
Instance Method Details
#generate_files ⇒ Object
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 |