Class: RadCoreRails::Generators::ZipCodesMigrationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RadCoreRails::Generators::ZipCodesMigrationGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/rad_core_rails/zip_codes_migration_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_migration ⇒ Object
9 10 11 |
# File 'lib/generators/rad_core_rails/zip_codes_migration_generator.rb', line 9 def copy_migration migration_template "migration.rb", "db/migrate/create_zip_codes.rb", migration_version: migration_version end |
#migration_version ⇒ Object
13 14 15 |
# File 'lib/generators/rad_core_rails/zip_codes_migration_generator.rb', line 13 def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end |