2020-11-23 15:35:03 +08:00
|
|
|
# == 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
|
|
|
|
|
#
|
|
|
|
|
|
2020-03-09 00:40:16 +08:00
|
|
|
class ProjectLanguage < ApplicationRecord
|
|
|
|
|
include Projectable
|
2022-10-17 10:52:57 +08:00
|
|
|
|
2022-10-19 15:18:15 +08:00
|
|
|
validates :name, uniqueness: { message: "已存在" }
|
2020-03-09 00:40:16 +08:00
|
|
|
end
|