Sha256: 6bce746cd71c1916b11a61e0ed1b14bbd8190301c7c5dc99a0f0617528e7c4fe

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

class CreateCounties < ActiveRecord::Migration
  def self.up
    create_table :counties do |t|
      t.string :name
      t.string :description
      t.integer :country_id
      t.string :fips_state_name
      t.string :fips_state_numeric_code
      t.string :fips_county_numeric_code
      t.string :fips_county_name
      t.string :fips_class_code
      t.float :latitude
      t.float :longitude

      t.timestamps
    end
  end

  def self.down
    drop_table :counties
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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