Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
9dbc768d
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9dbc768d
编写于
12月 08, 2015
作者:
S
Stan Hu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update annotations
上级
cbb9da3d
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
54 addition
and
0 deletion
+54
-0
app/models/lfs_object.rb
app/models/lfs_object.rb
+12
-0
app/models/lfs_objects_project.rb
app/models/lfs_objects_project.rb
+11
-0
app/models/note.rb
app/models/note.rb
+1
-0
app/models/project.rb
app/models/project.rb
+1
-0
app/models/user.rb
app/models/user.rb
+1
-0
spec/factories/lfs_objects.rb
spec/factories/lfs_objects.rb
+12
-0
spec/factories/lfs_objects_projects.rb
spec/factories/lfs_objects_projects.rb
+11
-0
spec/factories/notes.rb
spec/factories/notes.rb
+1
-0
spec/factories/projects.rb
spec/factories/projects.rb
+1
-0
spec/models/note_spec.rb
spec/models/note_spec.rb
+1
-0
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-0
spec/models/user_spec.rb
spec/models/user_spec.rb
+1
-0
未找到文件。
app/models/lfs_object.rb
浏览文件 @
9dbc768d
# == 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
...
...
app/models/lfs_objects_project.rb
浏览文件 @
9dbc768d
# == 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
...
...
app/models/note.rb
浏览文件 @
9dbc768d
...
...
@@ -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'
...
...
app/models/project.rb
浏览文件 @
9dbc768d
...
...
@@ -28,6 +28,7 @@
# import_type :string(255)
# import_source :string(255)
# commit_count :integer default(0)
# import_error :text
#
require
'carrierwave/orm/activerecord'
...
...
app/models/user.rb
浏览文件 @
9dbc768d
...
...
@@ -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'
...
...
spec/factories/lfs_objects.rb
浏览文件 @
9dbc768d
# == 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
...
...
spec/factories/lfs_objects_projects.rb
浏览文件 @
9dbc768d
# == 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
...
...
spec/factories/notes.rb
浏览文件 @
9dbc768d
...
...
@@ -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'
...
...
spec/factories/projects.rb
浏览文件 @
9dbc768d
...
...
@@ -28,6 +28,7 @@
# import_type :string(255)
# import_source :string(255)
# commit_count :integer default(0)
# import_error :text
#
FactoryGirl
.
define
do
...
...
spec/models/note_spec.rb
浏览文件 @
9dbc768d
...
...
@@ -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'
...
...
spec/models/project_spec.rb
浏览文件 @
9dbc768d
...
...
@@ -28,6 +28,7 @@
# import_type :string(255)
# import_source :string(255)
# commit_count :integer default(0)
# import_error :text
#
require
'spec_helper'
...
...
spec/models/user_spec.rb
浏览文件 @
9dbc768d
...
...
@@ -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'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录