Commit 36f861f1b1b7dc02a83d16243f680c8fbdfabfb7
1 parent
c5cdd078
Exists in
spb-stable
and in
3 other branches
Re-annotate models
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
68 changed files
with
286 additions
and
228 deletions
Show diff stats
app/models/broadcast_message.rb
@@ -3,12 +3,12 @@ | @@ -3,12 +3,12 @@ | ||
3 | # Table name: broadcast_messages | 3 | # Table name: broadcast_messages |
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | -# message :text default(""), not null | 6 | +# message :text not null |
7 | # starts_at :datetime | 7 | # starts_at :datetime |
8 | # ends_at :datetime | 8 | # ends_at :datetime |
9 | # alert_type :integer | 9 | # alert_type :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # color :string(255) | 12 | # color :string(255) |
13 | # font :string(255) | 13 | # font :string(255) |
14 | # | 14 | # |
app/models/deploy_key.rb
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # user_id :integer | 6 | # user_id :integer |
7 | -# created_at :datetime not null | ||
8 | -# updated_at :datetime not null | 7 | +# created_at :datetime |
8 | +# updated_at :datetime | ||
9 | # key :text | 9 | # key :text |
10 | # title :string(255) | 10 | # title :string(255) |
11 | # type :string(255) | 11 | # type :string(255) |
app/models/deploy_keys_project.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # deploy_key_id :integer not null | 6 | # deploy_key_id :integer not null |
7 | # project_id :integer not null | 7 | # project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | class DeployKeysProject < ActiveRecord::Base | 12 | class DeployKeysProject < ActiveRecord::Base |
app/models/email.rb
@@ -2,10 +2,13 @@ | @@ -2,10 +2,13 @@ | ||
2 | # | 2 | # |
3 | # Table name: emails | 3 | # Table name: emails |
4 | # | 4 | # |
5 | -# id :integer not null, primary key | ||
6 | -# user_id :integer not null | ||
7 | -# email :string not null | ||
8 | -# created_at :datetime not null | 5 | +# id :integer not null, primary key |
6 | +# user_id :integer not null | ||
7 | +# email :string(255) not null | ||
8 | +# created_at :datetime | ||
9 | +# updated_at :datetime | ||
10 | +# | ||
11 | + | ||
9 | class Email < ActiveRecord::Base | 12 | class Email < ActiveRecord::Base |
10 | attr_accessible :email, :user_id | 13 | attr_accessible :email, :user_id |
11 | 14 |
app/models/event.rb
@@ -8,8 +8,8 @@ | @@ -8,8 +8,8 @@ | ||
8 | # title :string(255) | 8 | # title :string(255) |
9 | # data :text | 9 | # data :text |
10 | # project_id :integer | 10 | # project_id :integer |
11 | -# created_at :datetime not null | ||
12 | -# updated_at :datetime not null | 11 | +# created_at :datetime |
12 | +# updated_at :datetime | ||
13 | # action :integer | 13 | # action :integer |
14 | # author_id :integer | 14 | # author_id :integer |
15 | # | 15 | # |
app/models/forked_project_link.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # forked_to_project_id :integer not null | 6 | # forked_to_project_id :integer not null |
7 | # forked_from_project_id :integer not null | 7 | # forked_from_project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | class ForkedProjectLink < ActiveRecord::Base | 12 | class ForkedProjectLink < ActiveRecord::Base |
app/models/group.rb
@@ -6,10 +6,11 @@ | @@ -6,10 +6,11 @@ | ||
6 | # name :string(255) not null | 6 | # name :string(255) not null |
7 | # path :string(255) not null | 7 | # path :string(255) not null |
8 | # owner_id :integer | 8 | # owner_id :integer |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # type :string(255) | 11 | # type :string(255) |
12 | # description :string(255) default(""), not null | 12 | # description :string(255) default(""), not null |
13 | +# avatar :string(255) | ||
13 | # | 14 | # |
14 | 15 | ||
15 | require 'carrierwave/orm/activerecord' | 16 | require 'carrierwave/orm/activerecord' |
app/models/issue.rb
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | # assignee_id :integer | 7 | # assignee_id :integer |
8 | # author_id :integer | 8 | # author_id :integer |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # position :integer default(0) | 12 | # position :integer default(0) |
13 | # branch_name :string(255) | 13 | # branch_name :string(255) |
14 | # description :text | 14 | # description :text |
app/models/key.rb
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # user_id :integer | 6 | # user_id :integer |
7 | -# created_at :datetime not null | ||
8 | -# updated_at :datetime not null | 7 | +# created_at :datetime |
8 | +# updated_at :datetime | ||
9 | # key :text | 9 | # key :text |
10 | # title :string(255) | 10 | # title :string(255) |
11 | # type :string(255) | 11 | # type :string(255) |
app/models/merge_request.rb
@@ -9,10 +9,8 @@ | @@ -9,10 +9,8 @@ | ||
9 | # author_id :integer | 9 | # author_id :integer |
10 | # assignee_id :integer | 10 | # assignee_id :integer |
11 | # title :string(255) | 11 | # title :string(255) |
12 | -# created_at :datetime not null | ||
13 | -# updated_at :datetime not null | ||
14 | -# st_commits :text(2147483647) | ||
15 | -# st_diffs :text(2147483647) | 12 | +# created_at :datetime |
13 | +# updated_at :datetime | ||
16 | # milestone_id :integer | 14 | # milestone_id :integer |
17 | # state :string(255) | 15 | # state :string(255) |
18 | # merge_status :string(255) | 16 | # merge_status :string(255) |
app/models/merge_request_diff.rb
1 | +# == Schema Information | ||
2 | +# | ||
3 | +# Table name: merge_request_diffs | ||
4 | +# | ||
5 | +# id :integer not null, primary key | ||
6 | +# state :string(255) default("collected"), not null | ||
7 | +# st_commits :text | ||
8 | +# st_diffs :text | ||
9 | +# merge_request_id :integer not null | ||
10 | +# created_at :datetime | ||
11 | +# updated_at :datetime | ||
12 | +# | ||
13 | + | ||
1 | require Rails.root.join("app/models/commit") | 14 | require Rails.root.join("app/models/commit") |
2 | 15 | ||
3 | class MergeRequestDiff < ActiveRecord::Base | 16 | class MergeRequestDiff < ActiveRecord::Base |
app/models/milestone.rb
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | # project_id :integer not null | 7 | # project_id :integer not null |
8 | # description :text | 8 | # description :text |
9 | # due_date :date | 9 | # due_date :date |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # state :string(255) | 12 | # state :string(255) |
13 | # iid :integer | 13 | # iid :integer |
14 | # | 14 | # |
app/models/namespace.rb
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # name :string(255) not null | 6 | # name :string(255) not null |
7 | # path :string(255) not null | 7 | # path :string(255) not null |
8 | # owner_id :integer | 8 | # owner_id :integer |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # type :string(255) | 11 | # type :string(255) |
12 | # description :string(255) default(""), not null | 12 | # description :string(255) default(""), not null |
13 | # avatar :string(255) | 13 | # avatar :string(255) |
app/models/note.rb
@@ -6,15 +6,15 @@ | @@ -6,15 +6,15 @@ | ||
6 | # note :text | 6 | # note :text |
7 | # noteable_type :string(255) | 7 | # noteable_type :string(255) |
8 | # author_id :integer | 8 | # author_id :integer |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # project_id :integer | 11 | # project_id :integer |
12 | # attachment :string(255) | 12 | # attachment :string(255) |
13 | # line_code :string(255) | 13 | # line_code :string(255) |
14 | # commit_id :string(255) | 14 | # commit_id :string(255) |
15 | # noteable_id :integer | 15 | # noteable_id :integer |
16 | -# st_diff :text | ||
17 | # system :boolean default(FALSE), not null | 16 | # system :boolean default(FALSE), not null |
17 | +# st_diff :text | ||
18 | # | 18 | # |
19 | 19 | ||
20 | require 'carrierwave/orm/activerecord' | 20 | require 'carrierwave/orm/activerecord' |
app/models/personal_snippet.rb
@@ -4,11 +4,11 @@ | @@ -4,11 +4,11 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # title :string(255) | 6 | # title :string(255) |
7 | -# content :text(2147483647) | 7 | +# content :text |
8 | # author_id :integer not null | 8 | # author_id :integer not null |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # file_name :string(255) | 12 | # file_name :string(255) |
13 | # expires_at :datetime | 13 | # expires_at :datetime |
14 | # private :boolean default(TRUE), not null | 14 | # private :boolean default(TRUE), not null |
app/models/project.rb
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # name :string(255) | 6 | # name :string(255) |
7 | # path :string(255) | 7 | # path :string(255) |
8 | # description :text | 8 | # description :text |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # creator_id :integer | 11 | # creator_id :integer |
12 | # issues_enabled :boolean default(TRUE), not null | 12 | # issues_enabled :boolean default(TRUE), not null |
13 | # wall_enabled :boolean default(TRUE), not null | 13 | # wall_enabled :boolean default(TRUE), not null |
@@ -18,9 +18,10 @@ | @@ -18,9 +18,10 @@ | ||
18 | # issues_tracker_id :string(255) | 18 | # issues_tracker_id :string(255) |
19 | # snippets_enabled :boolean default(TRUE), not null | 19 | # snippets_enabled :boolean default(TRUE), not null |
20 | # last_activity_at :datetime | 20 | # last_activity_at :datetime |
21 | -# imported :boolean default(FALSE), not null | ||
22 | # import_url :string(255) | 21 | # import_url :string(255) |
23 | # visibility_level :integer default(0), not null | 22 | # visibility_level :integer default(0), not null |
23 | +# archived :boolean default(FALSE), not null | ||
24 | +# import_status :string(255) | ||
24 | # | 25 | # |
25 | 26 | ||
26 | class Project < ActiveRecord::Base | 27 | class Project < ActiveRecord::Base |
app/models/project_hook.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | class ProjectHook < WebHook | 18 | class ProjectHook < WebHook |
app/models/project_services/assembla_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/campfire_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/emails_on_push_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/flowdock_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/gemnasium_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/gitlab_ci_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/hipchat_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/pivotaltracker_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_services/slack_service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/project_snippet.rb
@@ -4,11 +4,11 @@ | @@ -4,11 +4,11 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # title :string(255) | 6 | # title :string(255) |
7 | -# content :text(2147483647) | 7 | +# content :text |
8 | # author_id :integer not null | 8 | # author_id :integer not null |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # file_name :string(255) | 12 | # file_name :string(255) |
13 | # expires_at :datetime | 13 | # expires_at :datetime |
14 | # private :boolean default(TRUE), not null | 14 | # private :boolean default(TRUE), not null |
app/models/protected_branch.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # project_id :integer not null | 6 | # project_id :integer not null |
7 | # name :string(255) not null | 7 | # name :string(255) not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | class ProtectedBranch < ActiveRecord::Base | 12 | class ProtectedBranch < ActiveRecord::Base |
app/models/service.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
app/models/service_hook.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | class ServiceHook < WebHook | 18 | class ServiceHook < WebHook |
app/models/snippet.rb
@@ -4,11 +4,11 @@ | @@ -4,11 +4,11 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # title :string(255) | 6 | # title :string(255) |
7 | -# content :text(2147483647) | 7 | +# content :text |
8 | # author_id :integer not null | 8 | # author_id :integer not null |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # file_name :string(255) | 12 | # file_name :string(255) |
13 | # expires_at :datetime | 13 | # expires_at :datetime |
14 | # private :boolean default(TRUE), not null | 14 | # private :boolean default(TRUE), not null |
app/models/system_hook.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | class SystemHook < WebHook | 18 | class SystemHook < WebHook |
app/models/user.rb
@@ -2,47 +2,48 @@ | @@ -2,47 +2,48 @@ | ||
2 | # | 2 | # |
3 | # Table name: users | 3 | # Table name: users |
4 | # | 4 | # |
5 | -# id :integer not null, primary key | ||
6 | -# email :string(255) default(""), not null | ||
7 | -# encrypted_password :string(255) default(""), not null | ||
8 | -# reset_password_token :string(255) | ||
9 | -# reset_password_sent_at :datetime | ||
10 | -# remember_created_at :datetime | ||
11 | -# sign_in_count :integer default(0) | ||
12 | -# current_sign_in_at :datetime | ||
13 | -# last_sign_in_at :datetime | ||
14 | -# current_sign_in_ip :string(255) | ||
15 | -# last_sign_in_ip :string(255) | ||
16 | -# created_at :datetime not null | ||
17 | -# updated_at :datetime not null | ||
18 | -# name :string(255) | ||
19 | -# admin :boolean default(FALSE), not null | ||
20 | -# projects_limit :integer default(10) | ||
21 | -# skype :string(255) default(""), not null | ||
22 | -# linkedin :string(255) default(""), not null | ||
23 | -# twitter :string(255) default(""), not null | ||
24 | -# authentication_token :string(255) | ||
25 | -# theme_id :integer default(1), not null | ||
26 | -# bio :string(255) | ||
27 | -# failed_attempts :integer default(0) | ||
28 | -# locked_at :datetime | ||
29 | -# extern_uid :string(255) | ||
30 | -# provider :string(255) | ||
31 | -# username :string(255) | ||
32 | -# can_create_group :boolean default(TRUE), not null | ||
33 | -# can_create_team :boolean default(TRUE), not null | ||
34 | -# state :string(255) | ||
35 | -# color_scheme_id :integer default(1), not null | ||
36 | -# notification_level :integer default(1), not null | ||
37 | -# password_expires_at :datetime | ||
38 | -# created_by_id :integer | ||
39 | -# avatar :string(255) | ||
40 | -# confirmation_token :string(255) | ||
41 | -# confirmed_at :datetime | ||
42 | -# confirmation_sent_at :datetime | ||
43 | -# unconfirmed_email :string(255) | ||
44 | -# hide_no_ssh_key :boolean default(FALSE) | ||
45 | -# website_url :string(255) default(""), not null | 5 | +# id :integer not null, primary key |
6 | +# email :string(255) default(""), not null | ||
7 | +# encrypted_password :string(255) default(""), not null | ||
8 | +# reset_password_token :string(255) | ||
9 | +# reset_password_sent_at :datetime | ||
10 | +# remember_created_at :datetime | ||
11 | +# sign_in_count :integer default(0) | ||
12 | +# current_sign_in_at :datetime | ||
13 | +# last_sign_in_at :datetime | ||
14 | +# current_sign_in_ip :string(255) | ||
15 | +# last_sign_in_ip :string(255) | ||
16 | +# created_at :datetime | ||
17 | +# updated_at :datetime | ||
18 | +# name :string(255) | ||
19 | +# admin :boolean default(FALSE), not null | ||
20 | +# projects_limit :integer default(10) | ||
21 | +# skype :string(255) default(""), not null | ||
22 | +# linkedin :string(255) default(""), not null | ||
23 | +# twitter :string(255) default(""), not null | ||
24 | +# authentication_token :string(255) | ||
25 | +# theme_id :integer default(1), not null | ||
26 | +# bio :string(255) | ||
27 | +# failed_attempts :integer default(0) | ||
28 | +# locked_at :datetime | ||
29 | +# extern_uid :string(255) | ||
30 | +# provider :string(255) | ||
31 | +# username :string(255) | ||
32 | +# can_create_group :boolean default(TRUE), not null | ||
33 | +# can_create_team :boolean default(TRUE), not null | ||
34 | +# state :string(255) | ||
35 | +# color_scheme_id :integer default(1), not null | ||
36 | +# notification_level :integer default(1), not null | ||
37 | +# password_expires_at :datetime | ||
38 | +# created_by_id :integer | ||
39 | +# last_credential_check_at :datetime | ||
40 | +# avatar :string(255) | ||
41 | +# confirmation_token :string(255) | ||
42 | +# confirmed_at :datetime | ||
43 | +# confirmation_sent_at :datetime | ||
44 | +# unconfirmed_email :string(255) | ||
45 | +# hide_no_ssh_key :boolean default(FALSE) | ||
46 | +# website_url :string(255) default(""), not null | ||
46 | # | 47 | # |
47 | 48 | ||
48 | require 'carrierwave/orm/activerecord' | 49 | require 'carrierwave/orm/activerecord' |
app/models/users_group.rb
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # group_access :integer not null | 6 | # group_access :integer not null |
7 | # group_id :integer not null | 7 | # group_id :integer not null |
8 | # user_id :integer not null | 8 | # user_id :integer not null |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # notification_level :integer default(3), not null | 11 | # notification_level :integer default(3), not null |
12 | # | 12 | # |
13 | 13 |
app/models/users_project.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # user_id :integer not null | 6 | # user_id :integer not null |
7 | # project_id :integer not null | 7 | # project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # project_access :integer default(0), not null | 10 | # project_access :integer default(0), not null |
11 | # notification_level :integer default(3), not null | 11 | # notification_level :integer default(3), not null |
12 | # | 12 | # |
app/models/web_hook.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | class WebHook < ActiveRecord::Base | 18 | class WebHook < ActiveRecord::Base |
spec/factories/broadcast_messages.rb
@@ -3,12 +3,12 @@ | @@ -3,12 +3,12 @@ | ||
3 | # Table name: broadcast_messages | 3 | # Table name: broadcast_messages |
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | -# message :text default(""), not null | 6 | +# message :text not null |
7 | # starts_at :datetime | 7 | # starts_at :datetime |
8 | # ends_at :datetime | 8 | # ends_at :datetime |
9 | # alert_type :integer | 9 | # alert_type :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # color :string(255) | 12 | # color :string(255) |
13 | # font :string(255) | 13 | # font :string(255) |
14 | # | 14 | # |
spec/factories/forked_project_links.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # forked_to_project_id :integer not null | 6 | # forked_to_project_id :integer not null |
7 | # forked_from_project_id :integer not null | 7 | # forked_from_project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | # Read about factories at https://github.com/thoughtbot/factory_girl | 12 | # Read about factories at https://github.com/thoughtbot/factory_girl |
spec/factories/users_groups.rb
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # group_access :integer not null | 6 | # group_access :integer not null |
7 | # group_id :integer not null | 7 | # group_id :integer not null |
8 | # user_id :integer not null | 8 | # user_id :integer not null |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # notification_level :integer default(3), not null | 11 | # notification_level :integer default(3), not null |
12 | # | 12 | # |
13 | 13 |
spec/models/assembla_service_spec.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
spec/models/broadcast_message_spec.rb
@@ -3,12 +3,12 @@ | @@ -3,12 +3,12 @@ | ||
3 | # Table name: broadcast_messages | 3 | # Table name: broadcast_messages |
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | -# message :text default(""), not null | 6 | +# message :text not null |
7 | # starts_at :datetime | 7 | # starts_at :datetime |
8 | # ends_at :datetime | 8 | # ends_at :datetime |
9 | # alert_type :integer | 9 | # alert_type :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # color :string(255) | 12 | # color :string(255) |
13 | # font :string(255) | 13 | # font :string(255) |
14 | # | 14 | # |
spec/models/deploy_key_spec.rb
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # user_id :integer | 6 | # user_id :integer |
7 | -# created_at :datetime not null | ||
8 | -# updated_at :datetime not null | 7 | +# created_at :datetime |
8 | +# updated_at :datetime | ||
9 | # key :text | 9 | # key :text |
10 | # title :string(255) | 10 | # title :string(255) |
11 | # type :string(255) | 11 | # type :string(255) |
spec/models/deploy_keys_project_spec.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # deploy_key_id :integer not null | 6 | # deploy_key_id :integer not null |
7 | # project_id :integer not null | 7 | # project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | require 'spec_helper' | 12 | require 'spec_helper' |
spec/models/event_spec.rb
@@ -8,8 +8,8 @@ | @@ -8,8 +8,8 @@ | ||
8 | # title :string(255) | 8 | # title :string(255) |
9 | # data :text | 9 | # data :text |
10 | # project_id :integer | 10 | # project_id :integer |
11 | -# created_at :datetime not null | ||
12 | -# updated_at :datetime not null | 11 | +# created_at :datetime |
12 | +# updated_at :datetime | ||
13 | # action :integer | 13 | # action :integer |
14 | # author_id :integer | 14 | # author_id :integer |
15 | # | 15 | # |
spec/models/flowdock_service_spec.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
spec/models/forked_project_link_spec.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # forked_to_project_id :integer not null | 6 | # forked_to_project_id :integer not null |
7 | # forked_from_project_id :integer not null | 7 | # forked_from_project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | require 'spec_helper' | 12 | require 'spec_helper' |
spec/models/gemnasium_service_spec.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
spec/models/gitlab_ci_service_spec.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
spec/models/group_spec.rb
@@ -6,10 +6,11 @@ | @@ -6,10 +6,11 @@ | ||
6 | # name :string(255) not null | 6 | # name :string(255) not null |
7 | # path :string(255) not null | 7 | # path :string(255) not null |
8 | # owner_id :integer | 8 | # owner_id :integer |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # type :string(255) | 11 | # type :string(255) |
12 | # description :string(255) default(""), not null | 12 | # description :string(255) default(""), not null |
13 | +# avatar :string(255) | ||
13 | # | 14 | # |
14 | 15 | ||
15 | require 'spec_helper' | 16 | require 'spec_helper' |
spec/models/issue_spec.rb
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | # assignee_id :integer | 7 | # assignee_id :integer |
8 | # author_id :integer | 8 | # author_id :integer |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # position :integer default(0) | 12 | # position :integer default(0) |
13 | # branch_name :string(255) | 13 | # branch_name :string(255) |
14 | # description :text | 14 | # description :text |
spec/models/key_spec.rb
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # user_id :integer | 6 | # user_id :integer |
7 | -# created_at :datetime not null | ||
8 | -# updated_at :datetime not null | 7 | +# created_at :datetime |
8 | +# updated_at :datetime | ||
9 | # key :text | 9 | # key :text |
10 | # title :string(255) | 10 | # title :string(255) |
11 | # type :string(255) | 11 | # type :string(255) |
spec/models/merge_request_spec.rb
@@ -9,10 +9,8 @@ | @@ -9,10 +9,8 @@ | ||
9 | # author_id :integer | 9 | # author_id :integer |
10 | # assignee_id :integer | 10 | # assignee_id :integer |
11 | # title :string(255) | 11 | # title :string(255) |
12 | -# created_at :datetime not null | ||
13 | -# updated_at :datetime not null | ||
14 | -# st_commits :text(2147483647) | ||
15 | -# st_diffs :text(2147483647) | 12 | +# created_at :datetime |
13 | +# updated_at :datetime | ||
16 | # milestone_id :integer | 14 | # milestone_id :integer |
17 | # state :string(255) | 15 | # state :string(255) |
18 | # merge_status :string(255) | 16 | # merge_status :string(255) |
spec/models/milestone_spec.rb
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | # project_id :integer not null | 7 | # project_id :integer not null |
8 | # description :text | 8 | # description :text |
9 | # due_date :date | 9 | # due_date :date |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # state :string(255) | 12 | # state :string(255) |
13 | # iid :integer | 13 | # iid :integer |
14 | # | 14 | # |
spec/models/namespace_spec.rb
@@ -6,10 +6,11 @@ | @@ -6,10 +6,11 @@ | ||
6 | # name :string(255) not null | 6 | # name :string(255) not null |
7 | # path :string(255) not null | 7 | # path :string(255) not null |
8 | # owner_id :integer | 8 | # owner_id :integer |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # type :string(255) | 11 | # type :string(255) |
12 | # description :string(255) default(""), not null | 12 | # description :string(255) default(""), not null |
13 | +# avatar :string(255) | ||
13 | # | 14 | # |
14 | 15 | ||
15 | require 'spec_helper' | 16 | require 'spec_helper' |
spec/models/note_spec.rb
@@ -6,15 +6,15 @@ | @@ -6,15 +6,15 @@ | ||
6 | # note :text | 6 | # note :text |
7 | # noteable_type :string(255) | 7 | # noteable_type :string(255) |
8 | # author_id :integer | 8 | # author_id :integer |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # project_id :integer | 11 | # project_id :integer |
12 | # attachment :string(255) | 12 | # attachment :string(255) |
13 | # line_code :string(255) | 13 | # line_code :string(255) |
14 | # commit_id :string(255) | 14 | # commit_id :string(255) |
15 | # noteable_id :integer | 15 | # noteable_id :integer |
16 | -# st_diff :text | ||
17 | # system :boolean default(FALSE), not null | 16 | # system :boolean default(FALSE), not null |
17 | +# st_diff :text | ||
18 | # | 18 | # |
19 | 19 | ||
20 | require 'spec_helper' | 20 | require 'spec_helper' |
spec/models/project_hook_spec.rb
1 | +# == Schema Information | ||
2 | +# | ||
3 | +# Table name: web_hooks | ||
4 | +# | ||
5 | +# id :integer not null, primary key | ||
6 | +# url :string(255) | ||
7 | +# project_id :integer | ||
8 | +# created_at :datetime | ||
9 | +# updated_at :datetime | ||
10 | +# type :string(255) default("ProjectHook") | ||
11 | +# service_id :integer | ||
12 | +# push_events :boolean default(TRUE), not null | ||
13 | +# issues_events :boolean default(FALSE), not null | ||
14 | +# merge_requests_events :boolean default(FALSE), not null | ||
15 | +# tag_push_events :boolean default(FALSE) | ||
16 | +# | ||
17 | + | ||
1 | require 'spec_helper' | 18 | require 'spec_helper' |
2 | 19 | ||
3 | describe ProjectHook do | 20 | describe ProjectHook do |
spec/models/project_snippet_spec.rb
@@ -4,11 +4,11 @@ | @@ -4,11 +4,11 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # title :string(255) | 6 | # title :string(255) |
7 | -# content :text(2147483647) | 7 | +# content :text |
8 | # author_id :integer not null | 8 | # author_id :integer not null |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # file_name :string(255) | 12 | # file_name :string(255) |
13 | # expires_at :datetime | 13 | # expires_at :datetime |
14 | # private :boolean default(TRUE), not null | 14 | # private :boolean default(TRUE), not null |
spec/models/project_spec.rb
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # name :string(255) | 6 | # name :string(255) |
7 | # path :string(255) | 7 | # path :string(255) |
8 | # description :text | 8 | # description :text |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # creator_id :integer | 11 | # creator_id :integer |
12 | # issues_enabled :boolean default(TRUE), not null | 12 | # issues_enabled :boolean default(TRUE), not null |
13 | # wall_enabled :boolean default(TRUE), not null | 13 | # wall_enabled :boolean default(TRUE), not null |
@@ -18,10 +18,10 @@ | @@ -18,10 +18,10 @@ | ||
18 | # issues_tracker_id :string(255) | 18 | # issues_tracker_id :string(255) |
19 | # snippets_enabled :boolean default(TRUE), not null | 19 | # snippets_enabled :boolean default(TRUE), not null |
20 | # last_activity_at :datetime | 20 | # last_activity_at :datetime |
21 | -# imported :boolean default(FALSE), not null | ||
22 | # import_url :string(255) | 21 | # import_url :string(255) |
23 | # visibility_level :integer default(0), not null | 22 | # visibility_level :integer default(0), not null |
24 | # archived :boolean default(FALSE), not null | 23 | # archived :boolean default(FALSE), not null |
24 | +# import_status :string(255) | ||
25 | # | 25 | # |
26 | 26 | ||
27 | require 'spec_helper' | 27 | require 'spec_helper' |
spec/models/protected_branch_spec.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # project_id :integer not null | 6 | # project_id :integer not null |
7 | # name :string(255) not null | 7 | # name :string(255) not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # | 10 | # |
11 | 11 | ||
12 | require 'spec_helper' | 12 | require 'spec_helper' |
spec/models/service_hook_spec.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | require "spec_helper" | 18 | require "spec_helper" |
spec/models/service_spec.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
spec/models/slack_service_spec.rb
@@ -7,12 +7,13 @@ | @@ -7,12 +7,13 @@ | ||
7 | # title :string(255) | 7 | # title :string(255) |
8 | # token :string(255) | 8 | # token :string(255) |
9 | # project_id :integer not null | 9 | # project_id :integer not null |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # active :boolean default(FALSE), not null | 12 | # active :boolean default(FALSE), not null |
13 | # project_url :string(255) | 13 | # project_url :string(255) |
14 | # subdomain :string(255) | 14 | # subdomain :string(255) |
15 | # room :string(255) | 15 | # room :string(255) |
16 | +# recipients :text | ||
16 | # api_key :string(255) | 17 | # api_key :string(255) |
17 | # | 18 | # |
18 | 19 |
spec/models/snippet_spec.rb
@@ -4,11 +4,11 @@ | @@ -4,11 +4,11 @@ | ||
4 | # | 4 | # |
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # title :string(255) | 6 | # title :string(255) |
7 | -# content :text(2147483647) | 7 | +# content :text |
8 | # author_id :integer not null | 8 | # author_id :integer not null |
9 | # project_id :integer | 9 | # project_id :integer |
10 | -# created_at :datetime not null | ||
11 | -# updated_at :datetime not null | 10 | +# created_at :datetime |
11 | +# updated_at :datetime | ||
12 | # file_name :string(255) | 12 | # file_name :string(255) |
13 | # expires_at :datetime | 13 | # expires_at :datetime |
14 | # private :boolean default(TRUE), not null | 14 | # private :boolean default(TRUE), not null |
spec/models/system_hook_spec.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | require "spec_helper" | 18 | require "spec_helper" |
spec/models/user_spec.rb
@@ -2,47 +2,48 @@ | @@ -2,47 +2,48 @@ | ||
2 | # | 2 | # |
3 | # Table name: users | 3 | # Table name: users |
4 | # | 4 | # |
5 | -# id :integer not null, primary key | ||
6 | -# email :string(255) default(""), not null | ||
7 | -# encrypted_password :string(255) default(""), not null | ||
8 | -# reset_password_token :string(255) | ||
9 | -# reset_password_sent_at :datetime | ||
10 | -# remember_created_at :datetime | ||
11 | -# sign_in_count :integer default(0) | ||
12 | -# current_sign_in_at :datetime | ||
13 | -# last_sign_in_at :datetime | ||
14 | -# current_sign_in_ip :string(255) | ||
15 | -# last_sign_in_ip :string(255) | ||
16 | -# created_at :datetime not null | ||
17 | -# updated_at :datetime not null | ||
18 | -# name :string(255) | ||
19 | -# admin :boolean default(FALSE), not null | ||
20 | -# projects_limit :integer default(10) | ||
21 | -# skype :string(255) default(""), not null | ||
22 | -# linkedin :string(255) default(""), not null | ||
23 | -# twitter :string(255) default(""), not null | ||
24 | -# authentication_token :string(255) | ||
25 | -# theme_id :integer default(1), not null | ||
26 | -# bio :string(255) | ||
27 | -# failed_attempts :integer default(0) | ||
28 | -# locked_at :datetime | ||
29 | -# extern_uid :string(255) | ||
30 | -# provider :string(255) | ||
31 | -# username :string(255) | ||
32 | -# can_create_group :boolean default(TRUE), not null | ||
33 | -# can_create_team :boolean default(TRUE), not null | ||
34 | -# state :string(255) | ||
35 | -# color_scheme_id :integer default(1), not null | ||
36 | -# notification_level :integer default(1), not null | ||
37 | -# password_expires_at :datetime | ||
38 | -# created_by_id :integer | ||
39 | -# avatar :string(255) | ||
40 | -# confirmation_token :string(255) | ||
41 | -# confirmed_at :datetime | ||
42 | -# confirmation_sent_at :datetime | ||
43 | -# unconfirmed_email :string(255) | ||
44 | -# hide_no_ssh_key :boolean default(FALSE) | ||
45 | -# website_url :string(255) default(""), not null | 5 | +# id :integer not null, primary key |
6 | +# email :string(255) default(""), not null | ||
7 | +# encrypted_password :string(255) default(""), not null | ||
8 | +# reset_password_token :string(255) | ||
9 | +# reset_password_sent_at :datetime | ||
10 | +# remember_created_at :datetime | ||
11 | +# sign_in_count :integer default(0) | ||
12 | +# current_sign_in_at :datetime | ||
13 | +# last_sign_in_at :datetime | ||
14 | +# current_sign_in_ip :string(255) | ||
15 | +# last_sign_in_ip :string(255) | ||
16 | +# created_at :datetime | ||
17 | +# updated_at :datetime | ||
18 | +# name :string(255) | ||
19 | +# admin :boolean default(FALSE), not null | ||
20 | +# projects_limit :integer default(10) | ||
21 | +# skype :string(255) default(""), not null | ||
22 | +# linkedin :string(255) default(""), not null | ||
23 | +# twitter :string(255) default(""), not null | ||
24 | +# authentication_token :string(255) | ||
25 | +# theme_id :integer default(1), not null | ||
26 | +# bio :string(255) | ||
27 | +# failed_attempts :integer default(0) | ||
28 | +# locked_at :datetime | ||
29 | +# extern_uid :string(255) | ||
30 | +# provider :string(255) | ||
31 | +# username :string(255) | ||
32 | +# can_create_group :boolean default(TRUE), not null | ||
33 | +# can_create_team :boolean default(TRUE), not null | ||
34 | +# state :string(255) | ||
35 | +# color_scheme_id :integer default(1), not null | ||
36 | +# notification_level :integer default(1), not null | ||
37 | +# password_expires_at :datetime | ||
38 | +# created_by_id :integer | ||
39 | +# last_credential_check_at :datetime | ||
40 | +# avatar :string(255) | ||
41 | +# confirmation_token :string(255) | ||
42 | +# confirmed_at :datetime | ||
43 | +# confirmation_sent_at :datetime | ||
44 | +# unconfirmed_email :string(255) | ||
45 | +# hide_no_ssh_key :boolean default(FALSE) | ||
46 | +# website_url :string(255) default(""), not null | ||
46 | # | 47 | # |
47 | 48 | ||
48 | require 'spec_helper' | 49 | require 'spec_helper' |
spec/models/users_group_spec.rb
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # group_access :integer not null | 6 | # group_access :integer not null |
7 | # group_id :integer not null | 7 | # group_id :integer not null |
8 | # user_id :integer not null | 8 | # user_id :integer not null |
9 | -# created_at :datetime not null | ||
10 | -# updated_at :datetime not null | 9 | +# created_at :datetime |
10 | +# updated_at :datetime | ||
11 | # notification_level :integer default(3), not null | 11 | # notification_level :integer default(3), not null |
12 | # | 12 | # |
13 | 13 |
spec/models/users_project_spec.rb
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # user_id :integer not null | 6 | # user_id :integer not null |
7 | # project_id :integer not null | 7 | # project_id :integer not null |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # project_access :integer default(0), not null | 10 | # project_access :integer default(0), not null |
11 | # notification_level :integer default(3), not null | 11 | # notification_level :integer default(3), not null |
12 | # | 12 | # |
spec/models/web_hook_spec.rb
@@ -5,13 +5,14 @@ | @@ -5,13 +5,14 @@ | ||
5 | # id :integer not null, primary key | 5 | # id :integer not null, primary key |
6 | # url :string(255) | 6 | # url :string(255) |
7 | # project_id :integer | 7 | # project_id :integer |
8 | -# created_at :datetime not null | ||
9 | -# updated_at :datetime not null | 8 | +# created_at :datetime |
9 | +# updated_at :datetime | ||
10 | # type :string(255) default("ProjectHook") | 10 | # type :string(255) default("ProjectHook") |
11 | # service_id :integer | 11 | # service_id :integer |
12 | # push_events :boolean default(TRUE), not null | 12 | # push_events :boolean default(TRUE), not null |
13 | # issues_events :boolean default(FALSE), not null | 13 | # issues_events :boolean default(FALSE), not null |
14 | # merge_requests_events :boolean default(FALSE), not null | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | ||
15 | # | 16 | # |
16 | 17 | ||
17 | require 'spec_helper' | 18 | require 'spec_helper' |