method

only_columns

rails latest stable - Class: ActiveRecord::ModelSchema::ClassMethods

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

only_columns()
public

The list of columns names the model should allow. Only columns are used to define attribute accessors, and are referenced in SQL queries.