Reputation: 2085
I'm trying to migrate acts_as_taggable to install it, but, since I already have a table called "tags", for photo tagging, it will collapse and wont migrate.
How can I change the name for the table acts_as_table creates? Is this possible?
Thanks a lot!
Upvotes: 0
Views: 61
Reputation: 2085
I just fixed it by renaming all of my Tag table + columns, and replacing every "Tag" call in my code.
Patience!!!
Thanks Fer
Upvotes: 0
Reputation: 3347
You can take a look to the docs at http://rubydoc.info/gems/acts-as-taggable-on/3.4.1/frames
class User < ActiveRecord::Base
acts_as_taggable # Alias for acts_as_taggable_on :tags
acts_as_taggable_on :skills
end
Just use the second line with your new Tag model name
Upvotes: 1