summaryrefslogtreecommitdiff
path: root/app/models/language.rb
blob: 1b9c2c05065f8a49ae9666db678319f070c2f881 (plain)
1
2
3
4
5
6
7
8
9
10
11
class Language < ActiveRecord::Base
  has_many :tenants
  has_many :users

  validates_presence_of :name
  validates_presence_of :code

  def to_s
    name
  end
end