On May 19, 6:51 am, Venkat Eee <[email protected]>
wrote:
> Please help me to write an alternative code for below in ROR...
>

There's nothing built into rails as far as table locks go, so there's
not much more that you can do than that (apart I suppose from wrapping
things up nicely so that you can't forget to unlock tables).

Fred
> ActiveRecord::Base.connection.execute("LOCK TABLES table_name WRITE")
> ActiveRecord::Base.connection.execute('UNLOCK TABLES')
>
> Regards,
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to