Sha256: 0e7e8877dbe746e4716f22e66ddd63182d9f3f9c9b37699ceaec5dbdedcc7140

Contents?: true

Size: 386 Bytes

Versions: 6

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

class AddZctaPrimaryCountySubdivision < ActiveRecord::Migration[5.0]
  def up
    unless column_exists?(:us_geo_zctas, :primary_county_subdivision_geoid)
      add_column :us_geo_zctas, :primary_county_subdivision_geoid, :string, limit: 10, null: true
    end
  end

  def down
    remove_column :us_geo_zctas, :primary_county_subdivision_geoid
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
us_geo-2.1.1 db/migrate/20230417000250_add_zcta_primary_county_subdivision.rb
us_geo-2.1.0 db/migrate/20230417000250_add_zcta_primary_county_subdivision.rb
us_geo-2.0.4 db/migrate/20230417000250_add_zcta_primary_county_subdivision.rb
us_geo-2.0.3 db/migrate/20230417000250_add_zcta_primary_county_subdivision.rb
us_geo-2.0.2 db/migrate/20230417000250_add_zcta_primary_county_subdivision.rb
us_geo-2.0.1 db/migrate/20230417000250_add_zcta_primary_county_subdivision.rb