You are here: Browse Railsplugins Simple Taggable
Add column “cached_tag_list” to your model. Example migration:
def self.up
add_column :tickets, :cached_tag_list, :string
end
Create table “taggings” and “tags”. Example migration:
create_table "taggings", :force => true do |t|
t.integer "tag_id"
t.integer "taggable_id"
t.string "taggable_type"
t.datetime "created_at"
end
add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type"
create_table "tags", :force => true do |t|
t.string "name"
end
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly