class ActivityNotification::Generators::MigrationGenerator
Migration generator to create migration files from templates. @example Run migration generator
rails generate activity_notification:migration
Constants
- MIGRATION_TABLES
Public Instance Methods
create_migrations()
click to toggle source
Create migration files in application directory
# File lib/generators/activity_notification/migration/migration_generator.rb, line 19 def create_migrations @migration_name = name @migration_tables = options[:tables] || MIGRATION_TABLES migration_template 'migration.rb', "db/migrate/#{name.underscore}.rb" end