Class: ActAsReleasable::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActAsReleasable::InstallGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/act_as_releasable/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/generators/act_as_releasable/install_generator.rb', line 14 def create_migration_file %w/create_releasable_candidates create_releasable_candidate_items/.each do |f| begin migration_template "#{f}.rb", "db/migrate/#{f}.rb" rescue Rails::Generators::Error => e puts e. end end end |