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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +6 -5
- data/db/migrate/20170204035500_create_actions.rb +4 -4
- data/lib/action_store/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3988826380df6e969ee7f907d632d89c5d25693889162577405c6c0e3f96fe69
|
4
|
+
data.tar.gz: 42f5f5235c5e1200b6117f9039458d502d23ec2fb3e136a626d121cf4ab6396c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c6ab024f34886fdc7403a61828072bbf809c3bdfe97a07662870df53fad027c1fd02ba7e9b36e327857737e3baa448a837c37965b7b38cd79b70634c857913
|
7
|
+
data.tar.gz: f8f0151be8d3a5db18b195e475ca422bb3597ae237cd8d28adcf1df081888fa1cc08f1f9058f401337df5d08409713b6cd0109fccd182b7966ba202f12a64321
|
data/CHANGELOG.md
CHANGED
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
|
data/lib/action_store/version.rb
CHANGED