Class: ActiveVersioning::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveVersioning::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/active_versioning/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#install_migrations ⇒ Object
14 15 16 |
# File 'lib/generators/active_versioning/install_generator.rb', line 14 def install_migrations migration_template 'migrations/create_versions.rb', 'db/migrate/create_versions.rb' end |
#install_models ⇒ Object
10 11 12 |
# File 'lib/generators/active_versioning/install_generator.rb', line 10 def install_models copy_file 'models/version.rb', 'app/models/version.rb' end |