Model.column_names
Model.columns_hash
Model.columns
For instance variables/attributes in an AR object
object.attribute_names
object.attribute_present?
object.attributes
For instance methods without inheritance from super class
Model.instance_methods(false)
一个类得所对应数据库表字段的相关方法
最新推荐文章于 2021-03-06 17:33:21 发布