显微镜添加了针对ActiveRecord boolean , date和datetime属性的有用范围。 安装 将此行添加到您的应用程序的Gemfile中: gem 'microscope' 用法 create_table "events" do | t | t . string "name" t . boolean "special" t . datetime "expired_at" t . date "archived_on" end class Event < ApplicationRecord acts_as_microscope end E