Sha256: 035aafd4bb5a26fc4e9f5b46de558e3d74e1463323997405e3136a24a678a39d
Contents?: true
Size: 321 Bytes
Versions: 20
Compression:
Stored size: 321 Bytes
Contents
# typed: strict class SpellBook < ApplicationRecord validates :name, length: { minimum: 5 }, presence: true # simulate when belongs_to is optional by default, but it is enforced at the DB level belongs_to :wizard, optional: true enum book_type: { unclassified: 0, biology: 1, dark_art: 999, } end
Version data entries
20 entries across 5 versions & 1 rubygems