Class: Cardio::Generators::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- Cardio::Generators::MigrationGenerator
- Extended by:
- ClassMethods
- Defined in:
- card/lib/generators/migration/migration_generator.rb
Overview
generate structure and card migrations
Instance Method Summary collapse
Methods included from ClassMethods
banner, banner_command, namespace, source_root
Instance Method Details
#create_migration_file ⇒ Object
18 19 20 21 22 |
# File 'card/lib/generators/migration/migration_generator.rb', line 18 def create_migration_file set_local_assigns! migration_template "card_migration.erb", File.join(migration_path, "#{file_name}.rb") end |