Module: Geocoder::Generators::MigrationVersion
- Included in:
- Geocoder::Generators::Maxmind::GeoliteCityGenerator, Geocoder::Generators::Maxmind::GeoliteCountryGenerator
- Defined in:
- lib/generators/geocoder/migration_version.rb
Instance Method Summary collapse
Instance Method Details
#migration_version ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/geocoder/migration_version.rb', line 8 def migration_version if rails_5? "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" end end |
#rails_5? ⇒ Boolean
4 5 6 |
# File 'lib/generators/geocoder/migration_version.rb', line 4 def rails_5? Rails::VERSION::MAJOR == 5 end |