method

column_defaults

rails latest stable - Class: ActiveRecord::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

column_defaults()
public

Returns a hash where the keys are column names and the values are default values when instantiating the AR object for this table.