ActiveRecordの継承クラスの属性やカラムの一覧を取得する - Qiita

前提条件Rails: 5.2Ruby: 2.5.1本題サンプルのユーザテーブルの定義create_table :users do |t| t.string :name t.timestam…