mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-04 20:10:16 +01:00
remove unused and unneccesary user_id from taggings table.
this way we can stay closer to the defaults of has_many_polymorphs thus making upgrading easier
This commit is contained in:
parent
65fe971d32
commit
f79c28231b
12 changed files with 1932 additions and 1911 deletions
6
test/fixtures/taggings.yml
vendored
6
test/fixtures/taggings.yml
vendored
|
|
@ -4,14 +4,12 @@ foo_bar1:
|
|||
tag_id: 1
|
||||
taggable_id: 1 # Call Bill Gates
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
|
||||
foo_bar2:
|
||||
id: 2
|
||||
tag_id: 2
|
||||
taggable_id: 1 # Call Bill Gates
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
|
||||
# Todo 2 should be tagged with foo
|
||||
foo1:
|
||||
|
|
@ -19,11 +17,9 @@ foo1:
|
|||
tag_id: 1
|
||||
taggable_id: 2 # Call dinosaur exterminator
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
|
||||
foo2:
|
||||
id: 4
|
||||
tag_id: 1
|
||||
taggable_id: 3 # Buy milk - completed
|
||||
taggable_type: Todo
|
||||
user_id: 1
|
||||
taggable_type: Todo
|
||||
Loading…
Add table
Add a link
Reference in a new issue