rails/rails — Issue #3803: inconsistent set_table_name
Author: daniel2d2art
Created: 2011-11-30 01:13:50+00:00
State: open

If set_table_name specifies the same name but with diferent upper and lowercase combination don't use the epecified table_name continues with normalized rails table_name.
All in uppercase or different name, then accepts the assigment ...

Postgresql Table example named as "KaKaTua",

class Kakatua< ActiveRecord::Base
self.set_table_name "KaKaTua" # DON'T WORKS, sql ouputs as "kakatua". (need consistent set_table_name with "KaKaTua" sql output)
#self.set_table_name "KAKATUA" # WORKS, sql ouputs as "KAKATUA"
#self.set_table_name "KaKaxxxTua" # WORKS, ouputs as "KaKaxxxtua"

end