From rails console, how to list columns in a particular table:
http://stackoverflow.com/questions/5575970/activerecord-list-columns-in-table-from-console
Model.column_names
e.g. User.column_names
http://stackoverflow.com/questions/5575970/activerecord-list-columns-in-table-from-console
Model.column_names
e.g. User.column_names
No comments:
Post a Comment