Sha256: 88353afdc51a89e61f6e3b2053ca7a8ba545a5587216fb85729f0a9cea14d102
Contents?: true
Size: 700 Bytes
Versions: 7
Compression:
Stored size: 700 Bytes
Contents
# frozen_string_literal: true class CreateZctaUrbanAreas < ActiveRecord::Migration[5.0] def up return if table_exists?(:us_geo_zcta_urban_areas) create_table :us_geo_zcta_urban_areas do |t| t.string :zipcode, limit: 5, null: false, index: true t.string :urban_area_geoid, limit: 5, null: false t.float :land_area, null: false t.float :water_area, null: false t.datetime :updated_at, null: false t.integer :status, null: false, default: 0, limit: 1 end add_index :us_geo_zcta_urban_areas, [:urban_area_geoid, :zipcode], name: :index_us_geo_urban_area_zctas_uniq, unique: true end def down drop_table :us_geo_zcta_urban_areas end end
Version data entries
7 entries across 7 versions & 1 rubygems