Sha256: 3eefa40d05d678ce968c50b12e852fbd99a3b66ce0e47b6a16044b7359aa3c29
Contents?: true
Size: 728 Bytes
Versions: 7
Compression:
Stored size: 728 Bytes
Contents
# frozen_string_literal: true class CreateUrbanAreaCounties < ActiveRecord::Migration[5.0] def up return if table_exists?(:us_geo_urban_area_counties) create_table :us_geo_urban_area_counties do |t| t.string :urban_area_geoid, limit: 5, null: false t.string :county_geoid, limit: 5, 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_urban_area_counties, [:urban_area_geoid, :county_geoid], name: :index_us_geo_urban_area_counties_uniq, unique: true end def down drop_table :us_geo_urban_area_counties end end
Version data entries
7 entries across 7 versions & 1 rubygems