Sha256: af6b956757f8f54b51546af591514e5ad566f038e68e9a650660594265b0ca70

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

class AddZctaPrimaryPlace < ActiveRecord::Migration[5.0]
  def up
    return if column_exists?(:us_geo_zctas, :primary_place_geoid)

    add_column :us_geo_zctas, :primary_place_geoid, :string, limit: 7, null: true, index: true
  end

  def down
    add_column :us_geo_zctas, :primary_place_geoid, :string, limit: 7, null: true, index: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
us_geo-2.0.0 db/migrate/20230414000000_add_zcta_primary_place.rb