us_geo 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dfc74542cb99a60205494e209802884c849a4bd0f05f06fc1bb644d7ad27e62
4
- data.tar.gz: 39e6ca65501f0244529893ba3eb4b1a3ff07aa836649f8beeaad70ed380e9b69
3
+ metadata.gz: 73084a715b73e960f52bf49b61e83d9bf68814a95a5ba9a6c702e721f9fe4c14
4
+ data.tar.gz: 3e525d12df7a407afdfd67116a1f54f8c17de9def115a433fb0678b215267eff
5
5
  SHA512:
6
- metadata.gz: 4fdf470e2c5773e4ca335b89dfdd79ba67205160bc894118be7898ccddaabd5a81fecc448ce2ab8fc775823935b6df60f493fdfd4647f90c1d35e35254a53f10
7
- data.tar.gz: 7424c521ab4736f001392640240de3ba1255656babacbd2eef45b036a260060ac57e73e0bd147f3cc4f5811dcbd79da2a0a13009dbcfeea8f27196972d1bfac4
6
+ metadata.gz: 4a2c90967678930d21c7c3560d785a4fb8551f71cf017f1e9a8ef975f637bb215b3ef90376140a67cdbd6740f1ae4206407f7da25ef027804d8b788a525c73b8
7
+ data.tar.gz: e1ec086a0af3dff1ad76af089caa510af3175f2b82f5afa6489752bd562dbb6662cc374cd6b55a0ec6392f3e289318c93387b2a6b9b0b684fe15e2422a2955e5
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 2.0.1
8
+
9
+ ### Added
10
+
11
+ - Indexes on `us_geo_zctas` on `primary_place_geoid` and on `primary_county_subdivision_geoid`.
12
+
7
13
  ## 2.0.0
8
14
 
9
15
  ### Changed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -4,10 +4,10 @@ class AddZctaPrimaryPlace < ActiveRecord::Migration[5.0]
4
4
  def up
5
5
  return if column_exists?(:us_geo_zctas, :primary_place_geoid)
6
6
 
7
- add_column :us_geo_zctas, :primary_place_geoid, :string, limit: 7, null: true, index: true
7
+ add_column :us_geo_zctas, :primary_place_geoid, :string, limit: 7, null: true
8
8
  end
9
9
 
10
10
  def down
11
- add_column :us_geo_zctas, :primary_place_geoid, :string, limit: 7, null: true, index: true
11
+ remove_column :us_geo_zctas, :primary_place_geoid
12
12
  end
13
13
  end
@@ -3,11 +3,11 @@
3
3
  class AddZctaPrimaryCountySubdivision < ActiveRecord::Migration[5.0]
4
4
  def up
5
5
  unless column_exists?(:us_geo_zctas, :primary_county_subdivision_geoid)
6
- add_column :us_geo_zctas, :primary_county_subdivision_geoid, :string, limit: 10, null: true, index: true
6
+ add_column :us_geo_zctas, :primary_county_subdivision_geoid, :string, limit: 10, null: true
7
7
  end
8
8
  end
9
9
 
10
10
  def down
11
- add_column :us_geo_zctas, :primary_county_subdivision_geoid, :string, limit: 10, null: true, index: true
11
+ remove_column :us_geo_zctas, :primary_county_subdivision_geoid
12
12
  end
13
13
  end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddIndexOnZctasGeoids < ActiveRecord::Migration[5.0]
4
+ def up
5
+ unless index_exists?(:us_geo_zctas, :primary_place_geoid)
6
+ add_index :us_geo_zctas, :primary_place_geoid
7
+ end
8
+
9
+ unless index_exists?(:us_geo_zctas, :primary_county_subdivision_geoid)
10
+ add_index :us_geo_zctas, :primary_county_subdivision_geoid
11
+ end
12
+ end
13
+
14
+ def down
15
+ remove_index :us_geo_zctas, :primary_place_geoid
16
+ remove_index :us_geo_zctas, :primary_county_subdivision_geoid
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: us_geo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
@@ -82,6 +82,7 @@ files:
82
82
  - db/migrate/20230417000400_allow_null_urban_area_counties_demographics.rb
83
83
  - db/migrate/20230417000500_allow_null_zcta_urban_areas_demographics.rb
84
84
  - db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
85
+ - db/migrate/20230426000100_add_index_on_zctas_geoids.rb
85
86
  - db/schema.rb
86
87
  - explorer_app/.gitattributes
87
88
  - explorer_app/.gitignore