forgeplus/app/models/project_language.rb

18 lines
443 B
Ruby
Raw Permalink Normal View History

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
validates :name, uniqueness: { message: "已存在" }
2020-03-09 00:40:16 +08:00
end