Class: SluggiGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- SluggiGenerator
- Defined in:
- lib/generators/sluggi_generator.rb
Overview
Copy the migration to create the slugs table.
Instance Method Summary collapse
-
#copy_files ⇒ Object
Copy the migration template to db/migrate.
Instance Method Details
#copy_files ⇒ Object
Copy the migration template to db/migrate.
12 13 14 |
# File 'lib/generators/sluggi_generator.rb', line 12 def copy_files migration_template "create_slugs.erb.rb", "db/migrate/create_slugs.rb" end |