Sha256: 498cb1f5c6a2afc1a80c3d92a40c30a01a573a67f20041b16896be2b5d0bf593

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

class AddIsoCountryInformation < ActiveRecord::Migration
  def self.up
    change_table :countries do |t|
      t.column :iso, :string, :size => 2
      t.column :printable_name, :string, :size => 80
      t.column :iso3, :string, :size => 3
      t.column :numcode, :integer      
    end
  end

  def self.down
    change_table :countries do |t|
      t.remove :iso
      t.remove :printable_name
      t.remove :iso3
      t.remove :numcode
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 db/migrate/20080630152702_add_iso_country_information.rb
spree-0.9.4 db/migrate/20080630152702_add_iso_country_information.rb
spree-0.9.3 db/migrate/20080630152702_add_iso_country_information.rb
spree-0.9.2 db/migrate/20080630152702_add_iso_country_information.rb
spree-0.9.1 db/migrate/20080630152702_add_iso_country_information.rb
spree-0.9.0 db/migrate/20080630152702_add_iso_country_information.rb
spree-0.8.5 db/migrate/20080630152702_add_iso_country_information.rb