Declare an enum attribute where the values map to integers in the database, but can be queried by name. Example: class Conversation < ActiveRecord::Base ...
確定! 回上一頁