一个类得所对应数据库表字段的相关方法

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)

你可能感兴趣的:(数据库)