Class: ActiveRecord::Generators::TokenActionGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveRecord::Generators::TokenActionGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/active_record/token_action_generator.rb
Overview
This generator will run during ‘rails generate token_action`.
Instance Method Summary collapse
Instance Method Details
#copy_migration_file ⇒ Object
14 15 16 |
# File 'lib/generators/active_record/token_action_generator.rb', line 14 def copy_migration_file migration_template 'migration.rb', 'db/migrate/create_token_action_tokens' end |