Class: ThreadableComments::Generators::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- ThreadableComments::Generators::MigrationGenerator
- Defined in:
- lib/generators/threadable_comments/migration/migration_generator.rb
Overview
Migration generator that creates migration file from template
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
11 12 13 |
# File 'lib/generators/threadable_comments/migration/migration_generator.rb', line 11 def generate_files migration_template 'migration.rb', "db/migrate/#{name}.rb" end |