Sha256: 4cc99f001a744c76af291ec78ebad44174a9a291b946f2b0f348b409704e62fc

Contents?: true

Size: 724 Bytes

Versions: 7

Compression:

Stored size: 724 Bytes

Contents

# frozen_string_literal: true

class CreateCombinedStatisticalAreas < ActiveRecord::Migration[5.0]
  def up
    return if table_exists?(:us_geo_combined_statistical_areas)

    create_table :us_geo_combined_statistical_areas, id: false do |t|
      t.string :geoid, primary_key: true, null: false, limit: 3
      t.string :name, null: false, limit: 60, index: {unique: true}
      t.float :land_area, null: false
      t.float :water_area, null: false
      t.integer :population, null: false
      t.integer :housing_units, null: false
      t.datetime :updated_at, null: false
      t.integer :status, null: false, default: 0, limit: 1
    end
  end

  def down
    drop_table :us_geo_combined_statistical_areas
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
us_geo-2.1.1 db/migrate/20190221054500_create_combined_statistical_areas.rb
us_geo-2.1.0 db/migrate/20190221054500_create_combined_statistical_areas.rb
us_geo-2.0.4 db/migrate/20190221054500_create_combined_statistical_areas.rb
us_geo-2.0.3 db/migrate/20190221054500_create_combined_statistical_areas.rb
us_geo-2.0.2 db/migrate/20190221054500_create_combined_statistical_areas.rb
us_geo-2.0.1 db/migrate/20190221054500_create_combined_statistical_areas.rb
us_geo-2.0.0 db/migrate/20190221054500_create_combined_statistical_areas.rb