Class: ActivityNotification::Generators::AddNotifiableToSubscriptionsGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- ActivityNotification::Generators::AddNotifiableToSubscriptionsGenerator
- Defined in:
- lib/generators/activity_notification/add_notifiable_to_subscriptions/add_notifiable_to_subscriptions_generator.rb
Overview
Migration generator to add notifiable columns to subscriptions table for instance-level subscription support.
Instance Method Summary collapse
-
#create_migration_file ⇒ Object
Create migration file in application directory.
Instance Method Details
#create_migration_file ⇒ Object
Create migration file in application directory
16 17 18 19 20 |
# File 'lib/generators/activity_notification/add_notifiable_to_subscriptions/add_notifiable_to_subscriptions_generator.rb', line 16 def create_migration_file @migration_name = name migration_template 'add_notifiable_to_subscriptions.rb', "db/migrate/#{name.underscore}.rb" end |