Class: ActsAsAliased::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActsAsAliased::InstallGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/acts_as_aliased/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
11 12 13 14 |
# File 'lib/generators/acts_as_aliased/install_generator.rb', line 11 def create_migration_file puts "Adding a migration..." migration_template 'migration.rb', 'db/migrate/create_acts_as_aliased_table.rb' rescue puts $!. end |