Sha256: 0fc98e40c262e8af5017774d591ea86f04a04412f201c2dc3a4b69f3020549e2
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
# == Schema Information # # Table name: quizzes_levels # # id :integer not null, primary key # number_of_questions :integer # name :string # code :string # created_at :datetime not null # updated_at :datetime not null # require_dependency "quizzes/application_record" module Quizzes class Level < ApplicationRecord validates :name, :code, :number_of_questions, presence: true def self.all_and_nil Level.all.to_a + [nil] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quizzes-0.1.1 | app/models/quizzes/level.rb |
quizzes-0.1.0 | app/models/quizzes/level.rb |