mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
ADD db schema in models
This commit is contained in:
@@ -1,3 +1,28 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: version_releases
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_id :integer
|
||||
# name :string(255)
|
||||
# body :text(65535)
|
||||
# tag_name :string(255)
|
||||
# target_commitish :string(255)
|
||||
# draft :boolean default("0")
|
||||
# prerelease :boolean default("0")
|
||||
# tarball_url :string(255)
|
||||
# zipball_url :string(255)
|
||||
# url :string(255)
|
||||
# version_gid :string(255)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# repository_id :integer
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_version_releases_on_repository_id (repository_id)
|
||||
#
|
||||
|
||||
class VersionRelease < ApplicationRecord
|
||||
belongs_to :repository, counter_cache: true
|
||||
belongs_to :user
|
||||
|
||||
Reference in New Issue
Block a user