Well I had to override the behaviour of the Oracle Enhanced Adapter when creating sequence names. By default it creates them as "tablename_seq" where our database was "sq_tablename".
After reading this post. I made my change and placed it under the config/initializers directory.
But the concept of metaprogramming in Ruby is really intriguing.