mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-16 17:26:33 +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
|
|
@ -104,8 +104,6 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
has_many :notes, :order => "created_at DESC", :dependent => :delete_all
|
||||
has_one :preference, :dependent => :destroy
|
||||
has_many :taggings
|
||||
has_many :tags, :through => :taggings, :select => "DISTINCT tags.*"
|
||||
|
||||
attr_protected :is_admin
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue