mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 04:26:08 +10:00
Merge branch 'annotate-models' into 'master'
Update annotations See merge request !2033
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: lfs_objects
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# oid :string(255) not null
|
||||
# size :integer not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# file :string(255)
|
||||
#
|
||||
|
||||
class LfsObject < ActiveRecord::Base
|
||||
has_many :lfs_objects_projects, dependent: :destroy
|
||||
has_many :projects, through: :lfs_objects_projects
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: lfs_objects_projects
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# lfs_object_id :integer not null
|
||||
# project_id :integer not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
#
|
||||
|
||||
class LfsObjectsProject < ActiveRecord::Base
|
||||
belongs_to :project
|
||||
belongs_to :lfs_object
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# system :boolean default(FALSE), not null
|
||||
# st_diff :text
|
||||
# updated_by_id :integer
|
||||
# is_award :boolean default(FALSE), not null
|
||||
#
|
||||
|
||||
require 'carrierwave/orm/activerecord'
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
# import_type :string(255)
|
||||
# import_source :string(255)
|
||||
# commit_count :integer default(0)
|
||||
# import_error :text
|
||||
#
|
||||
|
||||
require 'carrierwave/orm/activerecord'
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
# project_view :integer default(0)
|
||||
# consumed_timestep :integer
|
||||
# layout :integer default(0)
|
||||
# hide_project_limit :boolean default(FALSE)
|
||||
#
|
||||
|
||||
require 'carrierwave/orm/activerecord'
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: lfs_objects
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# oid :string(255) not null
|
||||
# size :integer not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# file :string(255)
|
||||
#
|
||||
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: lfs_objects_projects
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# lfs_object_id :integer not null
|
||||
# project_id :integer not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
#
|
||||
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# system :boolean default(FALSE), not null
|
||||
# st_diff :text
|
||||
# updated_by_id :integer
|
||||
# is_award :boolean default(FALSE), not null
|
||||
#
|
||||
|
||||
require_relative '../support/repo_helpers'
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
# import_type :string(255)
|
||||
# import_source :string(255)
|
||||
# commit_count :integer default(0)
|
||||
# import_error :text
|
||||
#
|
||||
|
||||
FactoryGirl.define do
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# system :boolean default(FALSE), not null
|
||||
# st_diff :text
|
||||
# updated_by_id :integer
|
||||
# is_award :boolean default(FALSE), not null
|
||||
#
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
# import_type :string(255)
|
||||
# import_source :string(255)
|
||||
# commit_count :integer default(0)
|
||||
# import_error :text
|
||||
#
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
# project_view :integer default(0)
|
||||
# consumed_timestep :integer
|
||||
# layout :integer default(0)
|
||||
# hide_project_limit :boolean default(FALSE)
|
||||
#
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
Reference in New Issue
Block a user