class Crop < ApplicationRecord has_many :rafts enum :crop_type, { leafy: 0, fruit: 1, herb: 2 } end