Direct sql "delete from"

I was thinking, if I don’t manage to figure out the problem with
acts_as_taggable, that I could untag objects via a direct SQL DELETE
on the tag join table (something like “where tag_id = tag_to_delete
and user_id = current_user”). Are there any dangers to this approach?

martin

On 1/22/06, Martin DeMello [email protected] wrote:

I was thinking, if I don’t manage to figure out the problem with
acts_as_taggable, that I could untag objects via a direct SQL DELETE
on the tag join table (something like “where tag_id = tag_to_delete
and user_id = current_user”). Are there any dangers to this approach?

This worked like a charm, but it still makes me a bit uneasy - I have
no idea if some rails facet requires that all deletes be done through
a wrapper. Anyone?

martin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs