Sha256: a92b93b7ba13b9615bb53cf2aa9e686da90ff1b1cb9b99a6260b5a4bf1e33398
Contents?: true
Size: 668 Bytes
Versions: 7
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true class CreateZctaPlaces < ActiveRecord::Migration[5.0] def up return if table_exists?(:us_geo_zcta_places) create_table :us_geo_zcta_places do |t| t.string :zipcode, limit: 5, null: false t.string :place_geoid, limit: 7, null: false, index: true 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_places, [:zipcode, :place_geoid], name: :index_us_geo_us_geo_zcta_places_uniq, unique: true end def down drop_table :us_geo_zcta_places end end
Version data entries
7 entries across 7 versions & 1 rubygems