Sha256: c6e4f1147c0442bf61e8238adf63738ad77637beb38fa08265487c2969c165d7
Contents?: true
Size: 789 Bytes
Versions: 7
Compression:
Stored size: 789 Bytes
Contents
# frozen_string_literal: true class CreateZctas < ActiveRecord::Migration[5.0] def up return if table_exists?(:us_geo_zctas) create_table :us_geo_zctas, id: false do |t| t.string :zipcode, primary_key: true, null: false, limit: 5 t.string :primary_county_geoid, null: false, limit: 5, index: true t.string :primary_urban_area_geoid, null: true, limit: 5, index: 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.float :lat, null: false t.float :lng, 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_zctas end end
Version data entries
7 entries across 7 versions & 1 rubygems