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

Version Path
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
knitkit-2.1.5 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_app-3.1.6 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_tech_svcs-3.1.3 spec/dummy/db/data_migrations/20130220143305_add_iso_codes.erp_base_erp_svcs.rb
erp_base_erp_svcs-3.1.3 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_search-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
rails_db_admin-2.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
knitkit-2.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_forms-3.0.0 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_tech_svcs-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_app-3.1.2 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_base_erp_svcs-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_app-3.0.16 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_tech_svcs-3.0.12 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
erp_app-3.1.1 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
rails_db_admin-2.1.0 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
knitkit-2.1.0 spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb