Sha256: 278acbe89e361842dbde72ad34ac67227e40e6133dc9bc05b5d26ed97daa78bf
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true class CreatePlaces < ActiveRecord::Migration[5.0] def up return if table_exists?(:us_geo_places) create_table :us_geo_places, id: false do |t| t.string :geoid, primary_key: true, limit: 7, null: false t.integer :gnis_id, null: false, index: true t.string :name, null: false, limit: 60, index: true t.string :short_name, null: false, limit: 30, index: true t.string :state_code, null: false, limit: 2, index: true t.string :primary_county_geoid, null: false, limit: 5, index: true t.string :urban_area_geoid, null: true, limit: 5, index: true t.string :fips_class_code, null: false, limit: 2 t.float :land_area, null: true t.float :water_area, null: true t.integer :population, null: true t.integer :housing_units, null: true 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_places end end
Version data entries
7 entries across 7 versions & 1 rubygems