Sha256: 718ec3a53286a0266abbc0da3226ece14fa07ebc60133c08b4f6c65746547bda

Contents?: true

Size: 505 Bytes

Versions: 5

Compression:

Stored size: 505 Bytes

Contents

class CreateCountries < ActiveRecord::Migration
  def self.up
    create_table :countries do |t|
      t.string :name
      t.string :official_name
      t.string :description
      t.string :iso_3166_continent_alpha_code
      t.integer :continent_id
      t.string :iso_3166_1_alpha_2
      t.string :iso_3166_1_alpha_3
      t.string :iso_3166_1_numeric_code
      t.string :tld
      t.string :fips_10_4_alpha_code
      t.timestamps
    end
  end

  def self.down
    drop_table :countries
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
welike-geography-0.0.3 generators/geography/templates/migrations/countries.rb
welike-geography-0.0.4 generators/geography/templates/migrations/countries.rb
welike-geography-0.0.5 generators/geography/templates/migrations/countries.rb
welike-geography-0.0.6 generators/geography/templates/migrations/countries.rb
welike-geography-0.0.8 generators/geography/templates/migrations/countries.rb