# File lib/active_record/connection_adapters/abstract/database_statements.rb, line 106 def add_lock!(sql, options) case lock = options[:lock] when true: sql << ' FOR UPDATE' when String: sql << " #{lock}" end end