I’m using Rails with DB2 Database. The tables in the database are NOT
rails conventions, and there is no ‘id’ column too in the tables.
Hnece in the Model i’m setting the table name like this
Now if i try to print the colulmn names, it does not print anything, i
have tried to print the column name as below, but its not printing
Hence if we are using Legecy Database, how should we access the column
names of the corresponding model?