7 lines
183 B
Ruby
7 lines
183 B
Ruby
![]() |
class ProjectCustomAttribute < ActiveRecord::Base
|
||
|
belongs_to :project
|
||
|
|
||
|
validates :project, :key, :value, presence: true
|
||
|
validates :key, uniqueness: { scope: [:project_id] }
|
||
|
end
|