mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-28 18:10:15 +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
9
db/migrate/045_remove_user_from_taggings.rb.rb
Normal file
9
db/migrate/045_remove_user_from_taggings.rb.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class RemoveUserFromTaggings < ActiveRecord::Migration
|
||||
def self.up
|
||||
remove_column :taggings, :user_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
add_column :taggings, :user_id, :integer
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue