ecoffee/app/models/instance.rb

3 lines
108 B
Ruby

class Instance < ApplicationRecord
validates :zone, inclusion: { in: %w[anemos pagos pyros hydatos] }
end