Class: FriendlyIdGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FriendlyIdGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/friendly_id_generator.rb
Overview
This generator adds a migration for the FriendlyId::History addon.
Instance Method Summary collapse
-
#copy_files(*args) ⇒ Object
Copies the migration template to db/migrate.
Instance Method Details
#copy_files(*args) ⇒ Object
Copies the migration template to db/migrate.
13 14 15 |
# File 'lib/generators/friendly_id_generator.rb', line 13 def copy_files(*args) migration_template 'migration.rb', 'db/migrate/create_friendly_id_slugs.rb' end |