Use AR::Base.connection instead of AR::Base#connection