Class: ActiveRecord::Generators::TokenActionGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/active_record/token_action_generator.rb

Overview

This generator will run during ‘rails generate token_action`.

See Also:

  • DeviseGenerator
  • Devise::Generators::OrmHelpers

Instance Method Summary collapse

Instance Method Details

#copy_migration_fileObject



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