Sha256: d26edce88b0bc851409e843afc8db3bfb4082b8dbc9069e8be8264b1195f9099

Contents?: true

Size: 232 Bytes

Versions: 3

Compression:

Stored size: 232 Bytes

Contents

class Wizard < ApplicationRecord

  validates :name, length: { minimum: 5 }, presence: true

  enum house: {
    Gryffindor: 0,
    Hufflepuff: 1,
    Ravenclaw: 2,
    Slytherin: 3,
  }

  has_one :wand
  has_many :spell_books
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sorbet-rails-0.5.0 spec/support/rails_shared/app/models/wizard.rb
sorbet-rails-0.4.0 spec/support/rails_shared/app/models/wizard.rb
sorbet-rails-0.3.0 spec/support/rails_shared/app/models/wizard.rb