I am trying to use SQL Server with ruby on rails. I created a test table and it did not work until I made the table and field names all lower case. The database I wish to use is quite large and if I made everything lowercase it would be terrible as far as readability goes. Someone suggested to use 'lowercase_schema_reflection' but they told me to add it to my config/initializers file for the adapter. I do not have one so if anyone know how to implement this I would appreciate it if they could tell me.
Solution: Steve found the solution in the comments and did not make a post so I will provide the solution here.
He pointed out that I needed to do a rake db:schema:dump. Although it still did not work properly. The Table in the database is "EMP". The rake command calls it "emp". So in the model the line "self.table_name = 'EMP'", as accurate as it is, still fails. It needs to be "self.table_name = 'emp'". I am truly surprised a modern framework is case-sensitive (a mistake in any programming language design) let alone be inconsistent in its case-sensitivity. This error in design has cost me many hours and I am sure I am not the only one. Lets hope any developers designing any language and / or frameworks in the future avoid this costly mistake.