Sha256: 2b89e2463609f2f507d7ac8f66ec33a9002b9cb547507332184501328dfb004c
Contents?: true
Size: 541 Bytes
Versions: 57
Compression:
Stored size: 541 Bytes
Contents
# This migration comes from erp_base_erp_svcs (originally 20110609150135) require 'yaml' class AddIsoCodes def self.up #find the erp_base_erp_svcs engine engine_path = Rails::Application::Railties.engines.find{|item| item.engine_name == 'erp_base_erp_svcs'}.config.root.to_s GeoCountry.load_from_file(File.join(engine_path,'db/data_sets/geo_countries.yml')) GeoZone.load_from_file(File.join(engine_path,'db/data_sets/geo_zones.yml')) end def self.down GeoCountry.delete_all GeoZone.delete_all end end
Version data entries
57 entries across 57 versions & 19 rubygems