action-store 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d467de9d475a9a67d39dc4f7698be8b7a315d4a595e148c2a08f9ca3a5eff11
4
- data.tar.gz: 9f82b594f99b6b7a2b27f4aa8f2abb9be2b3b46ad1f366d76a8f8a939b829828
3
+ metadata.gz: 3988826380df6e969ee7f907d632d89c5d25693889162577405c6c0e3f96fe69
4
+ data.tar.gz: 42f5f5235c5e1200b6117f9039458d502d23ec2fb3e136a626d121cf4ab6396c
5
5
  SHA512:
6
- metadata.gz: 3756a70605f0d4e51a06442b92df8706b776115b614ed8771e85ac4ce861a2acff69d7fcbe5d2e92622d17506ae209bc5561ff46abb5418bc85d8bd0dcce7f12
7
- data.tar.gz: cadcd1a2f92975616885f446eda4530c5883bf0eccea64a28c41f94ccc38fa009b8713e5ffd67d513872449be7491afcb514eb7accd5c7775e7f3bd42bba3a75
6
+ metadata.gz: a4c6ab024f34886fdc7403a61828072bbf809c3bdfe97a07662870df53fad027c1fd02ba7e9b36e327857737e3baa448a837c37965b7b38cd79b70634c857913
7
+ data.tar.gz: f8f0151be8d3a5db18b195e475ca422bb3597ae237cd8d28adcf1df081888fa1cc08f1f9058f401337df5d08409713b6cd0109fccd182b7966ba202f12a64321
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.1.1
2
+
3
+ - Update Table column limit for fix MySQL max key length error. (#17)
4
+
1
5
  ## 1.1.0
2
6
 
3
7
  - Allows to configure different Models / Tables for store actions. (#16)
data/README.md CHANGED
@@ -16,11 +16,12 @@ And more and more.
16
16
 
17
17
  ## Basic table struct
18
18
 
19
- | Column | Description |
20
- | -------------------------- | --------------------------------------------------------------------------- |
21
- | `action_type` | The type of action [like, watch, follow, star, favorite] |
22
- | `action_option` | Secondary option for storing your custom status, or null if unneeded. |
23
- | `target_type`, `target_id` | Polymorphic Association for different `Target` models [User, Post, Comment] |
19
+ | Column | Chars Limit | Description |
20
+ | -------------------------- | ----------- | --------------------------------------------------------------------------- |
21
+ | `action_type` | 64 | The type of action [like, watch, follow, star, favorite] |
22
+ | `action_option` | 64 | Secondary option for storing your custom status, or null if unneeded. |
23
+ | `target_type`, `target_id` | 64 | Polymorphic Association for different `Target` models [User, Post, Comment] |
24
+ | `user_type` | 64 | Polymorphic Association for different user model [User, Group, Member] |
24
25
 
25
26
  ### Uniqueness
26
27
 
@@ -3,11 +3,11 @@
3
3
  class CreateActions < ActiveRecord::Migration[5.2]
4
4
  def change
5
5
  create_table :actions do |t|
6
- t.string :action_type, null: false
7
- t.string :action_option
8
- t.string :target_type
6
+ t.string :action_type, null: false, limit: 64
7
+ t.string :action_option, limit: 64
8
+ t.string :target_type, limit: 64
9
9
  t.bigint :target_id
10
- t.string :user_type
10
+ t.string :user_type, limit: 64
11
11
  t.bigint :user_id
12
12
 
13
13
  t.timestamps
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionStore
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee