JS-Tech/resj

View on GitHub
app/models/orator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Orator < ApplicationRecord

  scope :active, -> { where(disabled: false) }

  belongs_to :user
  belongs_to :location

  has_and_belongs_to_many :themes

  accepts_nested_attributes_for :user

  validates :description, presence: true, length: { maximum: 300 }

end