You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
329 B
13 lines
329 B
class Repository < ApplicationRecord
|
|
self.inheritance_column = nil # FIX The single-table inheritance mechanism failed
|
|
belongs_to :project, :touch => true
|
|
belongs_to :user
|
|
has_many :version_releases, dependent: :destroy
|
|
|
|
validates :identifier, presence: true
|
|
|
|
def to_param
|
|
self.identifier.parameterize
|
|
end
|
|
end
|