nt_models 0.1.4.2 → 0.1.5

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: 8b7527404f9aab08989fc392a6f574627b9f4f7f700147368b57ac8e99a5d16b
4
- data.tar.gz: f8aa1216264d68e3814d18921c22f8fe155363f5521fc67af111224bd8c23955
3
+ metadata.gz: 6c41c01d97c74a56a86486b7cca4f3a219f4bac6a2a5b3cbd9850f013fdba987
4
+ data.tar.gz: da06dba8fb0a778ab13a946f6ebba4fda5182b1a194b49c75dfbaf9911ac0045
5
5
  SHA512:
6
- metadata.gz: 03afc34e691620b8302ecda8043f4b3b024d968edf493466e54387eb4b7cb902c99bbf9d4170c6a119e4b111c7d1df43c4d028aa52492be019c2488cfdd3d86c
7
- data.tar.gz: 67aa6d19fcc2c6c2459a736174e1604b3f94f5fda682bdb8fc13a6d253a5ede8faca1a89f66e19dce1e1649729b1370c01d8d2992bd9d1ccaa908d7d2c06a41c
6
+ metadata.gz: 79a18d4d4fa7a92d2dc9787ebb1aa3b1ec856d0d3498d6b204cdd53ea9a35c1921d35ee0869764235ce7a771d18d3655cf0a0cf5cb0357ea17ec0dac3e136cb6
7
+ data.tar.gz: ae800dd1b084b55797fc20968b90696a8027bb4350290f9395be20f22e9f4b52cff53f9a3ddba8a0ad08345235da5f4553c7159358750bab15ecfdd1c96babfb
@@ -0,0 +1,15 @@
1
+ # Add indexes to db
2
+ class AddIndexes < ActiveRecord::Migration[5.2]
3
+ def change
4
+ add_index :users, :handle, unique: true
5
+
6
+ add_index :tweets, :author_id
7
+
8
+ add_index :follows, :follower_id
9
+ add_index :follows, :followee_id
10
+ add_index :follows, %i[follower_id followee_id], unique: true
11
+
12
+ add_index :timeline_pieces, :timeline_owner_id
13
+ add_index :timeline_pieces, :tweet_created_on
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nt_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Carr
@@ -121,6 +121,7 @@ files:
121
121
  - "./db/migrate/20190226212645_create_timeline_piece_table.rb"
122
122
  - "./db/migrate/20190226212658_create_mention_table.rb"
123
123
  - "./db/migrate/20190226212737_create_follow_table.rb"
124
+ - "./db/migrate/20190327162334_add_indexes.rb"
124
125
  - "./db/schema.rb"
125
126
  - "./lib/models/follow.rb"
126
127
  - "./lib/models/hashtag.rb"