forked from Gitlink/forgeplus
19 lines
407 B
Ruby
19 lines
407 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: licenses
|
|
#
|
|
# id :integer not null, primary key
|
|
# name :string(255)
|
|
# content :text(65535)
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
|
|
class License < ApplicationRecord
|
|
include Projectable
|
|
|
|
validates :name, :content, presence: true
|
|
validates :name, uniqueness: { case_sensitive: false }
|
|
|
|
end
|