forgeplus/app/models/project_language.rb

18 lines
443 B
Ruby

# == Schema Information
#
# Table name: project_languages
#
# id :integer not null, primary key
# name :string(255)
# position :integer
# projects_count :integer default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
class ProjectLanguage < ApplicationRecord
include Projectable
validates :name, uniqueness: { message: "已存在" }
end