Brendon Whateley wrote:
If you are using MySQL, you need to make sure that you are using a DB
engine that supports transactions if you plan to use them. You will
probably have to use SQL to do the table locking, so if you are using
mysql look in the MySQL manual for the table lock command. Then write
a (pair) class method to lock and unlock the table.
It might be more helpful to explain why you think you need to lock the
On May 6, 3:54�am, Venkat Eee <rails-mailing-l...@andreas-s.net>
Hey, thanks to all...
My code is working..thanks....
ActiveRecord::Base.connection.execute('LOCK TABLES tablename WRITE')