Files
progress-test/app/models/axis.rb
2022-07-21 09:43:08 -03:00

19 lines
367 B
Ruby

# == Schema Information
#
# Table name: axes
#
# id :bigint not null, primary key
# name :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_axes_on_name (name) UNIQUE
#
class Axis < ApplicationRecord
has_many :subjects
validates :name, presence: true, uniqueness: true
end