Class: UserNotification::Generators::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- UserNotification::Generators::MigrationGenerator
- Extended by:
- Base
- Defined in:
- lib/generators/user_notification/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.
Methods included from Base
Instance Method Details
#generate_files ⇒ Object
Create migration in project’s folder
12 13 14 |
# File 'lib/generators/user_notification/migration/migration_generator.rb', line 12 def generate_files migration_template 'migration.rb', "db/migrate/#{name}" end |