Commit 89ecb191260ac4db334b851d829c94949c3469b7
Exists in
spb-stable
and in
3 other branches
Merge branch 'ensure_default_fields' into 'master'
Add values to default fields to prevent 500 error when migrate from MySQL to Postgres
Showing
68 changed files
with
298 additions
and
228 deletions
Show diff stats
app/models/broadcast_message.rb
... | ... | @@ -3,12 +3,12 @@ |
3 | 3 | # Table name: broadcast_messages |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | -# message :text default(""), not null | |
6 | +# message :text not null | |
7 | 7 | # starts_at :datetime |
8 | 8 | # ends_at :datetime |
9 | 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 | 12 | # color :string(255) |
13 | 13 | # font :string(255) |
14 | 14 | # | ... | ... |
app/models/deploy_key.rb
app/models/deploy_keys_project.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # deploy_key_id :integer not null |
7 | 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 | 12 | class DeployKeysProject < ActiveRecord::Base | ... | ... |
app/models/email.rb
... | ... | @@ -2,10 +2,13 @@ |
2 | 2 | # |
3 | 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 | 12 | class Email < ActiveRecord::Base |
10 | 13 | attr_accessible :email, :user_id |
11 | 14 | ... | ... |
app/models/event.rb
app/models/forked_project_link.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # forked_to_project_id :integer not null |
7 | 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 | 12 | class ForkedProjectLink < ActiveRecord::Base | ... | ... |
app/models/group.rb
... | ... | @@ -6,10 +6,11 @@ |
6 | 6 | # name :string(255) not null |
7 | 7 | # path :string(255) not null |
8 | 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 | 11 | # type :string(255) |
12 | 12 | # description :string(255) default(""), not null |
13 | +# avatar :string(255) | |
13 | 14 | # |
14 | 15 | |
15 | 16 | require 'carrierwave/orm/activerecord' | ... | ... |
app/models/issue.rb
... | ... | @@ -7,8 +7,8 @@ |
7 | 7 | # assignee_id :integer |
8 | 8 | # author_id :integer |
9 | 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 | 12 | # position :integer default(0) |
13 | 13 | # branch_name :string(255) |
14 | 14 | # description :text | ... | ... |
app/models/key.rb
app/models/merge_request.rb
... | ... | @@ -9,10 +9,8 @@ |
9 | 9 | # author_id :integer |
10 | 10 | # assignee_id :integer |
11 | 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 | 14 | # milestone_id :integer |
17 | 15 | # state :string(255) |
18 | 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 | 14 | require Rails.root.join("app/models/commit") |
2 | 15 | |
3 | 16 | class MergeRequestDiff < ActiveRecord::Base | ... | ... |
app/models/milestone.rb
app/models/namespace.rb
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | # name :string(255) not null |
7 | 7 | # path :string(255) not null |
8 | 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 | 11 | # type :string(255) |
12 | 12 | # description :string(255) default(""), not null |
13 | 13 | # avatar :string(255) | ... | ... |
app/models/note.rb
... | ... | @@ -6,15 +6,15 @@ |
6 | 6 | # note :text |
7 | 7 | # noteable_type :string(255) |
8 | 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 | 11 | # project_id :integer |
12 | 12 | # attachment :string(255) |
13 | 13 | # line_code :string(255) |
14 | 14 | # commit_id :string(255) |
15 | 15 | # noteable_id :integer |
16 | -# st_diff :text | |
17 | 16 | # system :boolean default(FALSE), not null |
17 | +# st_diff :text | |
18 | 18 | # |
19 | 19 | |
20 | 20 | require 'carrierwave/orm/activerecord' |
... | ... | @@ -23,6 +23,8 @@ require 'file_size_validator' |
23 | 23 | class Note < ActiveRecord::Base |
24 | 24 | include Mentionable |
25 | 25 | |
26 | + default_value_for :system, false | |
27 | + | |
26 | 28 | attr_accessible :note, :noteable, :noteable_id, :noteable_type, :project_id, |
27 | 29 | :attachment, :line_code, :commit_id |
28 | 30 | attr_mentionable :note | ... | ... |
app/models/personal_snippet.rb
... | ... | @@ -4,11 +4,11 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # title :string(255) |
7 | -# content :text(2147483647) | |
7 | +# content :text | |
8 | 8 | # author_id :integer not null |
9 | 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 | 12 | # file_name :string(255) |
13 | 13 | # expires_at :datetime |
14 | 14 | # private :boolean default(TRUE), not null | ... | ... |
app/models/project.rb
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | # name :string(255) |
7 | 7 | # path :string(255) |
8 | 8 | # description :text |
9 | -# created_at :datetime not null | |
10 | -# updated_at :datetime not null | |
9 | +# created_at :datetime | |
10 | +# updated_at :datetime | |
11 | 11 | # creator_id :integer |
12 | 12 | # issues_enabled :boolean default(TRUE), not null |
13 | 13 | # wall_enabled :boolean default(TRUE), not null |
... | ... | @@ -18,9 +18,10 @@ |
18 | 18 | # issues_tracker_id :string(255) |
19 | 19 | # snippets_enabled :boolean default(TRUE), not null |
20 | 20 | # last_activity_at :datetime |
21 | -# imported :boolean default(FALSE), not null | |
22 | 21 | # import_url :string(255) |
23 | 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 | 27 | class Project < ActiveRecord::Base |
... | ... | @@ -29,6 +30,11 @@ class Project < ActiveRecord::Base |
29 | 30 | extend Enumerize |
30 | 31 | |
31 | 32 | default_value_for :archived, false |
33 | + default_value_for :issues_enabled, true | |
34 | + default_value_for :wall_enabled, true | |
35 | + default_value_for :merge_requests_enabled, true | |
36 | + default_value_for :wiki_enabled, true | |
37 | + default_value_for :snippets_enabled, true | |
32 | 38 | |
33 | 39 | ActsAsTaggableOn.strict_case_match = true |
34 | 40 | ... | ... |
app/models/project_hook.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | class ProjectHook < WebHook | ... | ... |
app/models/project_services/assembla_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/campfire_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/emails_on_push_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/flowdock_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/gemnasium_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/gitlab_ci_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/hipchat_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/pivotaltracker_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_services/slack_service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/project_snippet.rb
... | ... | @@ -4,11 +4,11 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # title :string(255) |
7 | -# content :text(2147483647) | |
7 | +# content :text | |
8 | 8 | # author_id :integer not null |
9 | 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 | 12 | # file_name :string(255) |
13 | 13 | # expires_at :datetime |
14 | 14 | # private :boolean default(TRUE), not null | ... | ... |
app/models/protected_branch.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # project_id :integer not null |
7 | 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 | 12 | class ProtectedBranch < ActiveRecord::Base | ... | ... |
app/models/service.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
app/models/service_hook.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | class ServiceHook < WebHook | ... | ... |
app/models/snippet.rb
... | ... | @@ -4,11 +4,11 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # title :string(255) |
7 | -# content :text(2147483647) | |
7 | +# content :text | |
8 | 8 | # author_id :integer not null |
9 | 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 | 12 | # file_name :string(255) |
13 | 13 | # expires_at :datetime |
14 | 14 | # private :boolean default(TRUE), not null | ... | ... |
app/models/system_hook.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | class SystemHook < WebHook | ... | ... |
app/models/user.rb
... | ... | @@ -2,53 +2,59 @@ |
2 | 2 | # |
3 | 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 | 49 | require 'carrierwave/orm/activerecord' |
49 | 50 | require 'file_size_validator' |
50 | 51 | |
51 | 52 | class User < ActiveRecord::Base |
53 | + default_value_for :admin, false | |
54 | + default_value_for :can_create_group, true | |
55 | + default_value_for :can_create_team, false | |
56 | + default_value_for :hide_no_ssh_key, false | |
57 | + | |
52 | 58 | devise :database_authenticatable, :token_authenticatable, :lockable, :async, |
53 | 59 | :recoverable, :rememberable, :trackable, :validatable, :omniauthable, :confirmable, :registerable |
54 | 60 | ... | ... |
app/models/users_group.rb
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | # group_access :integer not null |
7 | 7 | # group_id :integer not null |
8 | 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 | 11 | # notification_level :integer default(3), not null |
12 | 12 | # |
13 | 13 | ... | ... |
app/models/users_project.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # user_id :integer not null |
7 | 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 | # project_access :integer default(0), not null |
11 | 11 | # notification_level :integer default(3), not null |
12 | 12 | # | ... | ... |
app/models/web_hook.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | class WebHook < ActiveRecord::Base | ... | ... |
spec/factories/broadcast_messages.rb
... | ... | @@ -3,12 +3,12 @@ |
3 | 3 | # Table name: broadcast_messages |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | -# message :text default(""), not null | |
6 | +# message :text not null | |
7 | 7 | # starts_at :datetime |
8 | 8 | # ends_at :datetime |
9 | 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 | 12 | # color :string(255) |
13 | 13 | # font :string(255) |
14 | 14 | # | ... | ... |
spec/factories/forked_project_links.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # forked_to_project_id :integer not null |
7 | 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 | 12 | # Read about factories at https://github.com/thoughtbot/factory_girl | ... | ... |
spec/factories/users_groups.rb
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | # group_access :integer not null |
7 | 7 | # group_id :integer not null |
8 | 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 | 11 | # notification_level :integer default(3), not null |
12 | 12 | # |
13 | 13 | ... | ... |
spec/models/assembla_service_spec.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
spec/models/broadcast_message_spec.rb
... | ... | @@ -3,12 +3,12 @@ |
3 | 3 | # Table name: broadcast_messages |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | -# message :text default(""), not null | |
6 | +# message :text not null | |
7 | 7 | # starts_at :datetime |
8 | 8 | # ends_at :datetime |
9 | 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 | 12 | # color :string(255) |
13 | 13 | # font :string(255) |
14 | 14 | # | ... | ... |
spec/models/deploy_key_spec.rb
spec/models/deploy_keys_project_spec.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # deploy_key_id :integer not null |
7 | 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 | 12 | require 'spec_helper' | ... | ... |
spec/models/event_spec.rb
spec/models/flowdock_service_spec.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
spec/models/forked_project_link_spec.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # forked_to_project_id :integer not null |
7 | 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 | 12 | require 'spec_helper' | ... | ... |
spec/models/gemnasium_service_spec.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
spec/models/gitlab_ci_service_spec.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
spec/models/group_spec.rb
... | ... | @@ -6,10 +6,11 @@ |
6 | 6 | # name :string(255) not null |
7 | 7 | # path :string(255) not null |
8 | 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 | 11 | # type :string(255) |
12 | 12 | # description :string(255) default(""), not null |
13 | +# avatar :string(255) | |
13 | 14 | # |
14 | 15 | |
15 | 16 | require 'spec_helper' | ... | ... |
spec/models/issue_spec.rb
... | ... | @@ -7,8 +7,8 @@ |
7 | 7 | # assignee_id :integer |
8 | 8 | # author_id :integer |
9 | 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 | 12 | # position :integer default(0) |
13 | 13 | # branch_name :string(255) |
14 | 14 | # description :text | ... | ... |
spec/models/key_spec.rb
spec/models/merge_request_spec.rb
... | ... | @@ -9,10 +9,8 @@ |
9 | 9 | # author_id :integer |
10 | 10 | # assignee_id :integer |
11 | 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 | 14 | # milestone_id :integer |
17 | 15 | # state :string(255) |
18 | 16 | # merge_status :string(255) | ... | ... |
spec/models/milestone_spec.rb
spec/models/namespace_spec.rb
... | ... | @@ -6,10 +6,11 @@ |
6 | 6 | # name :string(255) not null |
7 | 7 | # path :string(255) not null |
8 | 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 | 11 | # type :string(255) |
12 | 12 | # description :string(255) default(""), not null |
13 | +# avatar :string(255) | |
13 | 14 | # |
14 | 15 | |
15 | 16 | require 'spec_helper' | ... | ... |
spec/models/note_spec.rb
... | ... | @@ -6,15 +6,15 @@ |
6 | 6 | # note :text |
7 | 7 | # noteable_type :string(255) |
8 | 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 | 11 | # project_id :integer |
12 | 12 | # attachment :string(255) |
13 | 13 | # line_code :string(255) |
14 | 14 | # commit_id :string(255) |
15 | 15 | # noteable_id :integer |
16 | -# st_diff :text | |
17 | 16 | # system :boolean default(FALSE), not null |
17 | +# st_diff :text | |
18 | 18 | # |
19 | 19 | |
20 | 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 | 18 | require 'spec_helper' |
2 | 19 | |
3 | 20 | describe ProjectHook do | ... | ... |
spec/models/project_snippet_spec.rb
... | ... | @@ -4,11 +4,11 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # title :string(255) |
7 | -# content :text(2147483647) | |
7 | +# content :text | |
8 | 8 | # author_id :integer not null |
9 | 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 | 12 | # file_name :string(255) |
13 | 13 | # expires_at :datetime |
14 | 14 | # private :boolean default(TRUE), not null | ... | ... |
spec/models/project_spec.rb
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | # name :string(255) |
7 | 7 | # path :string(255) |
8 | 8 | # description :text |
9 | -# created_at :datetime not null | |
10 | -# updated_at :datetime not null | |
9 | +# created_at :datetime | |
10 | +# updated_at :datetime | |
11 | 11 | # creator_id :integer |
12 | 12 | # issues_enabled :boolean default(TRUE), not null |
13 | 13 | # wall_enabled :boolean default(TRUE), not null |
... | ... | @@ -18,10 +18,10 @@ |
18 | 18 | # issues_tracker_id :string(255) |
19 | 19 | # snippets_enabled :boolean default(TRUE), not null |
20 | 20 | # last_activity_at :datetime |
21 | -# imported :boolean default(FALSE), not null | |
22 | 21 | # import_url :string(255) |
23 | 22 | # visibility_level :integer default(0), not null |
24 | 23 | # archived :boolean default(FALSE), not null |
24 | +# import_status :string(255) | |
25 | 25 | # |
26 | 26 | |
27 | 27 | require 'spec_helper' | ... | ... |
spec/models/protected_branch_spec.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # project_id :integer not null |
7 | 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 | 12 | require 'spec_helper' | ... | ... |
spec/models/service_hook_spec.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | require "spec_helper" | ... | ... |
spec/models/service_spec.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
spec/models/slack_service_spec.rb
... | ... | @@ -7,12 +7,13 @@ |
7 | 7 | # title :string(255) |
8 | 8 | # token :string(255) |
9 | 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 | 12 | # active :boolean default(FALSE), not null |
13 | 13 | # project_url :string(255) |
14 | 14 | # subdomain :string(255) |
15 | 15 | # room :string(255) |
16 | +# recipients :text | |
16 | 17 | # api_key :string(255) |
17 | 18 | # |
18 | 19 | ... | ... |
spec/models/snippet_spec.rb
... | ... | @@ -4,11 +4,11 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # title :string(255) |
7 | -# content :text(2147483647) | |
7 | +# content :text | |
8 | 8 | # author_id :integer not null |
9 | 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 | 12 | # file_name :string(255) |
13 | 13 | # expires_at :datetime |
14 | 14 | # private :boolean default(TRUE), not null | ... | ... |
spec/models/system_hook_spec.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | require "spec_helper" | ... | ... |
spec/models/user_spec.rb
... | ... | @@ -2,47 +2,48 @@ |
2 | 2 | # |
3 | 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 | 49 | require 'spec_helper' | ... | ... |
spec/models/users_group_spec.rb
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | # group_access :integer not null |
7 | 7 | # group_id :integer not null |
8 | 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 | 11 | # notification_level :integer default(3), not null |
12 | 12 | # |
13 | 13 | ... | ... |
spec/models/users_project_spec.rb
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # user_id :integer not null |
7 | 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 | # project_access :integer default(0), not null |
11 | 11 | # notification_level :integer default(3), not null |
12 | 12 | # | ... | ... |
spec/models/web_hook_spec.rb
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # url :string(255) |
7 | 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 | 10 | # type :string(255) default("ProjectHook") |
11 | 11 | # service_id :integer |
12 | 12 | # push_events :boolean default(TRUE), not null |
13 | 13 | # issues_events :boolean default(FALSE), not null |
14 | 14 | # merge_requests_events :boolean default(FALSE), not null |
15 | +# tag_push_events :boolean default(FALSE) | |
15 | 16 | # |
16 | 17 | |
17 | 18 | require 'spec_helper' | ... | ... |