diff --git a/app/models/broadcast_message.rb b/app/models/broadcast_message.rb index bebe0da..85ab7ed 100644 --- a/app/models/broadcast_message.rb +++ b/app/models/broadcast_message.rb @@ -3,12 +3,12 @@ # Table name: broadcast_messages # # id :integer not null, primary key -# message :text default(""), not null +# message :text not null # starts_at :datetime # ends_at :datetime # alert_type :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # color :string(255) # font :string(255) # diff --git a/app/models/deploy_key.rb b/app/models/deploy_key.rb index 47aeb93..570f5e9 100644 --- a/app/models/deploy_key.rb +++ b/app/models/deploy_key.rb @@ -4,8 +4,8 @@ # # id :integer not null, primary key # user_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # key :text # title :string(255) # type :string(255) diff --git a/app/models/deploy_keys_project.rb b/app/models/deploy_keys_project.rb index 6f109e4..739d749 100644 --- a/app/models/deploy_keys_project.rb +++ b/app/models/deploy_keys_project.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # deploy_key_id :integer not null # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # class DeployKeysProject < ActiveRecord::Base diff --git a/app/models/email.rb b/app/models/email.rb index b92c184..9068c2b 100644 --- a/app/models/email.rb +++ b/app/models/email.rb @@ -2,10 +2,13 @@ # # Table name: emails # -# id :integer not null, primary key -# user_id :integer not null -# email :string not null -# created_at :datetime not null +# id :integer not null, primary key +# user_id :integer not null +# email :string(255) not null +# created_at :datetime +# updated_at :datetime +# + class Email < ActiveRecord::Base attr_accessible :email, :user_id diff --git a/app/models/event.rb b/app/models/event.rb index 5c15685..cf88e9f 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -8,8 +8,8 @@ # title :string(255) # data :text # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # action :integer # author_id :integer # diff --git a/app/models/forked_project_link.rb b/app/models/forked_project_link.rb index aaa527a..17add27 100644 --- a/app/models/forked_project_link.rb +++ b/app/models/forked_project_link.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # forked_to_project_id :integer not null # forked_from_project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # class ForkedProjectLink < ActiveRecord::Base diff --git a/app/models/group.rb b/app/models/group.rb index 0d4d5f4..3cbf30a 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -6,10 +6,11 @@ # name :string(255) not null # path :string(255) not null # owner_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) # description :string(255) default(""), not null +# avatar :string(255) # require 'carrierwave/orm/activerecord' diff --git a/app/models/issue.rb b/app/models/issue.rb index 2104032..16d5134 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -7,8 +7,8 @@ # assignee_id :integer # author_id :integer # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # position :integer default(0) # branch_name :string(255) # description :text diff --git a/app/models/key.rb b/app/models/key.rb index 4202d79..035c9ef 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -4,8 +4,8 @@ # # id :integer not null, primary key # user_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # key :text # title :string(255) # type :string(255) diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index 1ec76db..8c885b7 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -9,10 +9,8 @@ # author_id :integer # assignee_id :integer # title :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# st_commits :text(2147483647) -# st_diffs :text(2147483647) +# created_at :datetime +# updated_at :datetime # milestone_id :integer # state :string(255) # merge_status :string(255) diff --git a/app/models/merge_request_diff.rb b/app/models/merge_request_diff.rb index 99afffc..0684461 100644 --- a/app/models/merge_request_diff.rb +++ b/app/models/merge_request_diff.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: merge_request_diffs +# +# id :integer not null, primary key +# state :string(255) default("collected"), not null +# st_commits :text +# st_diffs :text +# merge_request_id :integer not null +# created_at :datetime +# updated_at :datetime +# + require Rails.root.join("app/models/commit") class MergeRequestDiff < ActiveRecord::Base diff --git a/app/models/milestone.rb b/app/models/milestone.rb index e16529a..6a2ca76 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -7,8 +7,8 @@ # project_id :integer not null # description :text # due_date :date -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # state :string(255) # iid :integer # diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 468c93b..7973eef 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -6,8 +6,8 @@ # name :string(255) not null # path :string(255) not null # owner_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) # description :string(255) default(""), not null # avatar :string(255) diff --git a/app/models/note.rb b/app/models/note.rb index d666d5d..6f7afcd 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -6,15 +6,15 @@ # note :text # noteable_type :string(255) # author_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # project_id :integer # attachment :string(255) # line_code :string(255) # commit_id :string(255) # noteable_id :integer -# st_diff :text # system :boolean default(FALSE), not null +# st_diff :text # require 'carrierwave/orm/activerecord' diff --git a/app/models/personal_snippet.rb b/app/models/personal_snippet.rb index ef2000a..a3c0d20 100644 --- a/app/models/personal_snippet.rb +++ b/app/models/personal_snippet.rb @@ -4,11 +4,11 @@ # # id :integer not null, primary key # title :string(255) -# content :text(2147483647) +# content :text # author_id :integer not null # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # file_name :string(255) # expires_at :datetime # private :boolean default(TRUE), not null diff --git a/app/models/project.rb b/app/models/project.rb index 09642ff..e2e1ea8 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -6,8 +6,8 @@ # name :string(255) # path :string(255) # description :text -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # creator_id :integer # issues_enabled :boolean default(TRUE), not null # wall_enabled :boolean default(TRUE), not null @@ -18,9 +18,10 @@ # issues_tracker_id :string(255) # snippets_enabled :boolean default(TRUE), not null # last_activity_at :datetime -# imported :boolean default(FALSE), not null # import_url :string(255) # visibility_level :integer default(0), not null +# archived :boolean default(FALSE), not null +# import_status :string(255) # class Project < ActiveRecord::Base diff --git a/app/models/project_hook.rb b/app/models/project_hook.rb index 4e9b225..6db6767 100644 --- a/app/models/project_hook.rb +++ b/app/models/project_hook.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # class ProjectHook < WebHook diff --git a/app/models/project_services/assembla_service.rb b/app/models/project_services/assembla_service.rb index 2a2c517..06e9d61 100644 --- a/app/models/project_services/assembla_service.rb +++ b/app/models/project_services/assembla_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/campfire_service.rb b/app/models/project_services/campfire_service.rb index f9247e0..19030ec 100644 --- a/app/models/project_services/campfire_service.rb +++ b/app/models/project_services/campfire_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/emails_on_push_service.rb b/app/models/project_services/emails_on_push_service.rb index 0a45316..04775c4 100644 --- a/app/models/project_services/emails_on_push_service.rb +++ b/app/models/project_services/emails_on_push_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/flowdock_service.rb b/app/models/project_services/flowdock_service.rb index 2603a1f..6cdd04a 100644 --- a/app/models/project_services/flowdock_service.rb +++ b/app/models/project_services/flowdock_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/gemnasium_service.rb b/app/models/project_services/gemnasium_service.rb index 0b8e7ba..b363d7f 100644 --- a/app/models/project_services/gemnasium_service.rb +++ b/app/models/project_services/gemnasium_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/gitlab_ci_service.rb b/app/models/project_services/gitlab_ci_service.rb index 81ac47c..ed1944f 100644 --- a/app/models/project_services/gitlab_ci_service.rb +++ b/app/models/project_services/gitlab_ci_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/hipchat_service.rb b/app/models/project_services/hipchat_service.rb index 3cee047..d62f618 100644 --- a/app/models/project_services/hipchat_service.rb +++ b/app/models/project_services/hipchat_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/pivotaltracker_service.rb b/app/models/project_services/pivotaltracker_service.rb index 877b9a7..aa2bcc5 100644 --- a/app/models/project_services/pivotaltracker_service.rb +++ b/app/models/project_services/pivotaltracker_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_services/slack_service.rb b/app/models/project_services/slack_service.rb index a3697b3..50fd62d 100644 --- a/app/models/project_services/slack_service.rb +++ b/app/models/project_services/slack_service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/project_snippet.rb b/app/models/project_snippet.rb index f38aa07..14c8804 100644 --- a/app/models/project_snippet.rb +++ b/app/models/project_snippet.rb @@ -4,11 +4,11 @@ # # id :integer not null, primary key # title :string(255) -# content :text(2147483647) +# content :text # author_id :integer not null # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # file_name :string(255) # expires_at :datetime # private :boolean default(TRUE), not null diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb index 1637972..d2b2b12 100644 --- a/app/models/protected_branch.rb +++ b/app/models/protected_branch.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # project_id :integer not null # name :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # class ProtectedBranch < ActiveRecord::Base diff --git a/app/models/service.rb b/app/models/service.rb index f7e440d..ea00039 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/app/models/service_hook.rb b/app/models/service_hook.rb index 6f22a86..2e11239 100644 --- a/app/models/service_hook.rb +++ b/app/models/service_hook.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # class ServiceHook < WebHook diff --git a/app/models/snippet.rb b/app/models/snippet.rb index c1c9ba2..720accd 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -4,11 +4,11 @@ # # id :integer not null, primary key # title :string(255) -# content :text(2147483647) +# content :text # author_id :integer not null # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # file_name :string(255) # expires_at :datetime # private :boolean default(TRUE), not null diff --git a/app/models/system_hook.rb b/app/models/system_hook.rb index bffcbbf..ee32b49 100644 --- a/app/models/system_hook.rb +++ b/app/models/system_hook.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # class SystemHook < WebHook diff --git a/app/models/user.rb b/app/models/user.rb index c25dcb0..16961e5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -2,47 +2,48 @@ # # Table name: users # -# id :integer not null, primary key -# email :string(255) default(""), not null -# encrypted_password :string(255) default(""), not null -# reset_password_token :string(255) -# reset_password_sent_at :datetime -# remember_created_at :datetime -# sign_in_count :integer default(0) -# current_sign_in_at :datetime -# last_sign_in_at :datetime -# current_sign_in_ip :string(255) -# last_sign_in_ip :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# name :string(255) -# admin :boolean default(FALSE), not null -# projects_limit :integer default(10) -# skype :string(255) default(""), not null -# linkedin :string(255) default(""), not null -# twitter :string(255) default(""), not null -# authentication_token :string(255) -# theme_id :integer default(1), not null -# bio :string(255) -# failed_attempts :integer default(0) -# locked_at :datetime -# extern_uid :string(255) -# provider :string(255) -# username :string(255) -# can_create_group :boolean default(TRUE), not null -# can_create_team :boolean default(TRUE), not null -# state :string(255) -# color_scheme_id :integer default(1), not null -# notification_level :integer default(1), not null -# password_expires_at :datetime -# created_by_id :integer -# avatar :string(255) -# confirmation_token :string(255) -# confirmed_at :datetime -# confirmation_sent_at :datetime -# unconfirmed_email :string(255) -# hide_no_ssh_key :boolean default(FALSE) -# website_url :string(255) default(""), not null +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(255) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0) +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime +# updated_at :datetime +# name :string(255) +# admin :boolean default(FALSE), not null +# projects_limit :integer default(10) +# skype :string(255) default(""), not null +# linkedin :string(255) default(""), not null +# twitter :string(255) default(""), not null +# authentication_token :string(255) +# theme_id :integer default(1), not null +# bio :string(255) +# failed_attempts :integer default(0) +# locked_at :datetime +# extern_uid :string(255) +# provider :string(255) +# username :string(255) +# can_create_group :boolean default(TRUE), not null +# can_create_team :boolean default(TRUE), not null +# state :string(255) +# color_scheme_id :integer default(1), not null +# notification_level :integer default(1), not null +# password_expires_at :datetime +# created_by_id :integer +# last_credential_check_at :datetime +# avatar :string(255) +# confirmation_token :string(255) +# confirmed_at :datetime +# confirmation_sent_at :datetime +# unconfirmed_email :string(255) +# hide_no_ssh_key :boolean default(FALSE) +# website_url :string(255) default(""), not null # require 'carrierwave/orm/activerecord' diff --git a/app/models/users_group.rb b/app/models/users_group.rb index 181bf32..5f8b832 100644 --- a/app/models/users_group.rb +++ b/app/models/users_group.rb @@ -6,8 +6,8 @@ # group_access :integer not null # group_id :integer not null # user_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # notification_level :integer default(3), not null # diff --git a/app/models/users_project.rb b/app/models/users_project.rb index 6f14785..e8810f5 100644 --- a/app/models/users_project.rb +++ b/app/models/users_project.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # user_id :integer not null # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # project_access :integer default(0), not null # notification_level :integer default(3), not null # diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index 45a7953..76854da 100644 --- a/app/models/web_hook.rb +++ b/app/models/web_hook.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # class WebHook < ActiveRecord::Base diff --git a/spec/factories/broadcast_messages.rb b/spec/factories/broadcast_messages.rb index 6339d5c..ea0039d 100644 --- a/spec/factories/broadcast_messages.rb +++ b/spec/factories/broadcast_messages.rb @@ -3,12 +3,12 @@ # Table name: broadcast_messages # # id :integer not null, primary key -# message :text default(""), not null +# message :text not null # starts_at :datetime # ends_at :datetime # alert_type :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # color :string(255) # font :string(255) # diff --git a/spec/factories/forked_project_links.rb b/spec/factories/forked_project_links.rb index 2f9b91a..906e410 100644 --- a/spec/factories/forked_project_links.rb +++ b/spec/factories/forked_project_links.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # forked_to_project_id :integer not null # forked_from_project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # # Read about factories at https://github.com/thoughtbot/factory_girl diff --git a/spec/factories/users_groups.rb b/spec/factories/users_groups.rb index 34bc0c5..49c3a36 100644 --- a/spec/factories/users_groups.rb +++ b/spec/factories/users_groups.rb @@ -6,8 +6,8 @@ # group_access :integer not null # group_id :integer not null # user_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # notification_level :integer default(3), not null # diff --git a/spec/models/assembla_service_spec.rb b/spec/models/assembla_service_spec.rb index 1730a64..8b964bc 100644 --- a/spec/models/assembla_service_spec.rb +++ b/spec/models/assembla_service_spec.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb index cf0b36a..0f31c40 100644 --- a/spec/models/broadcast_message_spec.rb +++ b/spec/models/broadcast_message_spec.rb @@ -3,12 +3,12 @@ # Table name: broadcast_messages # # id :integer not null, primary key -# message :text default(""), not null +# message :text not null # starts_at :datetime # ends_at :datetime # alert_type :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # color :string(255) # font :string(255) # diff --git a/spec/models/deploy_key_spec.rb b/spec/models/deploy_key_spec.rb index b76ca66..adbbbac 100644 --- a/spec/models/deploy_key_spec.rb +++ b/spec/models/deploy_key_spec.rb @@ -4,8 +4,8 @@ # # id :integer not null, primary key # user_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # key :text # title :string(255) # type :string(255) diff --git a/spec/models/deploy_keys_project_spec.rb b/spec/models/deploy_keys_project_spec.rb index aeec171..3e0e25e 100644 --- a/spec/models/deploy_keys_project_spec.rb +++ b/spec/models/deploy_keys_project_spec.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # deploy_key_id :integer not null # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # require 'spec_helper' diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 53ede0d..f415e75 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -8,8 +8,8 @@ # title :string(255) # data :text # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # action :integer # author_id :integer # diff --git a/spec/models/flowdock_service_spec.rb b/spec/models/flowdock_service_spec.rb index 9741458..25ad133 100644 --- a/spec/models/flowdock_service_spec.rb +++ b/spec/models/flowdock_service_spec.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/spec/models/forked_project_link_spec.rb b/spec/models/forked_project_link_spec.rb index e719e3b..1845c61 100644 --- a/spec/models/forked_project_link_spec.rb +++ b/spec/models/forked_project_link_spec.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # forked_to_project_id :integer not null # forked_from_project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # require 'spec_helper' diff --git a/spec/models/gemnasium_service_spec.rb b/spec/models/gemnasium_service_spec.rb index dfc9984..efdf0dc 100644 --- a/spec/models/gemnasium_service_spec.rb +++ b/spec/models/gemnasium_service_spec.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/spec/models/gitlab_ci_service_spec.rb b/spec/models/gitlab_ci_service_spec.rb index 8ec15cb..a0708f1 100644 --- a/spec/models/gitlab_ci_service_spec.rb +++ b/spec/models/gitlab_ci_service_spec.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 686e43d..8259ed8 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -6,10 +6,11 @@ # name :string(255) not null # path :string(255) not null # owner_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) # description :string(255) default(""), not null +# avatar :string(255) # require 'spec_helper' diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 75155d5..d53c403 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -7,8 +7,8 @@ # assignee_id :integer # author_id :integer # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # position :integer default(0) # branch_name :string(255) # description :text diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index c1c6c2f..474067f 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -4,8 +4,8 @@ # # id :integer not null, primary key # user_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # key :text # title :string(255) # type :string(255) diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index f1ad679..a10673f 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -9,10 +9,8 @@ # author_id :integer # assignee_id :integer # title :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# st_commits :text(2147483647) -# st_diffs :text(2147483647) +# created_at :datetime +# updated_at :datetime # milestone_id :integer # state :string(255) # merge_status :string(255) diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb index b41012a..8309ad3 100644 --- a/spec/models/milestone_spec.rb +++ b/spec/models/milestone_spec.rb @@ -7,8 +7,8 @@ # project_id :integer not null # description :text # due_date :date -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # state :string(255) # iid :integer # diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index c38554e..d2bf969 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -6,10 +6,11 @@ # name :string(255) not null # path :string(255) not null # owner_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) # description :string(255) default(""), not null +# avatar :string(255) # require 'spec_helper' diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 4cdda1f..43779e6 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -6,15 +6,15 @@ # note :text # noteable_type :string(255) # author_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # project_id :integer # attachment :string(255) # line_code :string(255) # commit_id :string(255) # noteable_id :integer -# st_diff :text # system :boolean default(FALSE), not null +# st_diff :text # require 'spec_helper' diff --git a/spec/models/project_hook_spec.rb b/spec/models/project_hook_spec.rb index 7bd7c43..4e0d50d 100644 --- a/spec/models/project_hook_spec.rb +++ b/spec/models/project_hook_spec.rb @@ -1,3 +1,20 @@ +# == Schema Information +# +# Table name: web_hooks +# +# id :integer not null, primary key +# url :string(255) +# project_id :integer +# created_at :datetime +# updated_at :datetime +# type :string(255) default("ProjectHook") +# service_id :integer +# push_events :boolean default(TRUE), not null +# issues_events :boolean default(FALSE), not null +# merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) +# + require 'spec_helper' describe ProjectHook do diff --git a/spec/models/project_snippet_spec.rb b/spec/models/project_snippet_spec.rb index d3a46eb..4214717 100644 --- a/spec/models/project_snippet_spec.rb +++ b/spec/models/project_snippet_spec.rb @@ -4,11 +4,11 @@ # # id :integer not null, primary key # title :string(255) -# content :text(2147483647) +# content :text # author_id :integer not null # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # file_name :string(255) # expires_at :datetime # private :boolean default(TRUE), not null diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index b842023..b42d7bf 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -6,8 +6,8 @@ # name :string(255) # path :string(255) # description :text -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # creator_id :integer # issues_enabled :boolean default(TRUE), not null # wall_enabled :boolean default(TRUE), not null @@ -18,10 +18,10 @@ # issues_tracker_id :string(255) # snippets_enabled :boolean default(TRUE), not null # last_activity_at :datetime -# imported :boolean default(FALSE), not null # import_url :string(255) # visibility_level :integer default(0), not null # archived :boolean default(FALSE), not null +# import_status :string(255) # require 'spec_helper' diff --git a/spec/models/protected_branch_spec.rb b/spec/models/protected_branch_spec.rb index 6e83039..35b929c 100644 --- a/spec/models/protected_branch_spec.rb +++ b/spec/models/protected_branch_spec.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # project_id :integer not null # name :string(255) not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # require 'spec_helper' diff --git a/spec/models/service_hook_spec.rb b/spec/models/service_hook_spec.rb index 40a5fbc..6ec8243 100644 --- a/spec/models/service_hook_spec.rb +++ b/spec/models/service_hook_spec.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # require "spec_helper" diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 9454207..a4bed81 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/spec/models/slack_service_spec.rb b/spec/models/slack_service_spec.rb index 387455c..b00eb30 100644 --- a/spec/models/slack_service_spec.rb +++ b/spec/models/slack_service_spec.rb @@ -7,12 +7,13 @@ # title :string(255) # token :string(255) # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # active :boolean default(FALSE), not null # project_url :string(255) # subdomain :string(255) # room :string(255) +# recipients :text # api_key :string(255) # diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb index 5fa3972..a77c594 100644 --- a/spec/models/snippet_spec.rb +++ b/spec/models/snippet_spec.rb @@ -4,11 +4,11 @@ # # id :integer not null, primary key # title :string(255) -# content :text(2147483647) +# content :text # author_id :integer not null # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # file_name :string(255) # expires_at :datetime # private :boolean default(TRUE), not null diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb index 6a0d99d..7314439 100644 --- a/spec/models/system_hook_spec.rb +++ b/spec/models/system_hook_spec.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # require "spec_helper" diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index fef6314..34a5bcf 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -2,47 +2,48 @@ # # Table name: users # -# id :integer not null, primary key -# email :string(255) default(""), not null -# encrypted_password :string(255) default(""), not null -# reset_password_token :string(255) -# reset_password_sent_at :datetime -# remember_created_at :datetime -# sign_in_count :integer default(0) -# current_sign_in_at :datetime -# last_sign_in_at :datetime -# current_sign_in_ip :string(255) -# last_sign_in_ip :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# name :string(255) -# admin :boolean default(FALSE), not null -# projects_limit :integer default(10) -# skype :string(255) default(""), not null -# linkedin :string(255) default(""), not null -# twitter :string(255) default(""), not null -# authentication_token :string(255) -# theme_id :integer default(1), not null -# bio :string(255) -# failed_attempts :integer default(0) -# locked_at :datetime -# extern_uid :string(255) -# provider :string(255) -# username :string(255) -# can_create_group :boolean default(TRUE), not null -# can_create_team :boolean default(TRUE), not null -# state :string(255) -# color_scheme_id :integer default(1), not null -# notification_level :integer default(1), not null -# password_expires_at :datetime -# created_by_id :integer -# avatar :string(255) -# confirmation_token :string(255) -# confirmed_at :datetime -# confirmation_sent_at :datetime -# unconfirmed_email :string(255) -# hide_no_ssh_key :boolean default(FALSE) -# website_url :string(255) default(""), not null +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(255) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0) +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime +# updated_at :datetime +# name :string(255) +# admin :boolean default(FALSE), not null +# projects_limit :integer default(10) +# skype :string(255) default(""), not null +# linkedin :string(255) default(""), not null +# twitter :string(255) default(""), not null +# authentication_token :string(255) +# theme_id :integer default(1), not null +# bio :string(255) +# failed_attempts :integer default(0) +# locked_at :datetime +# extern_uid :string(255) +# provider :string(255) +# username :string(255) +# can_create_group :boolean default(TRUE), not null +# can_create_team :boolean default(TRUE), not null +# state :string(255) +# color_scheme_id :integer default(1), not null +# notification_level :integer default(1), not null +# password_expires_at :datetime +# created_by_id :integer +# last_credential_check_at :datetime +# avatar :string(255) +# confirmation_token :string(255) +# confirmed_at :datetime +# confirmation_sent_at :datetime +# unconfirmed_email :string(255) +# hide_no_ssh_key :boolean default(FALSE) +# website_url :string(255) default(""), not null # require 'spec_helper' diff --git a/spec/models/users_group_spec.rb b/spec/models/users_group_spec.rb index 9264f2b..acecae0 100644 --- a/spec/models/users_group_spec.rb +++ b/spec/models/users_group_spec.rb @@ -6,8 +6,8 @@ # group_access :integer not null # group_id :integer not null # user_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # notification_level :integer default(3), not null # diff --git a/spec/models/users_project_spec.rb b/spec/models/users_project_spec.rb index e289a59..aa4b8cb 100644 --- a/spec/models/users_project_spec.rb +++ b/spec/models/users_project_spec.rb @@ -5,8 +5,8 @@ # id :integer not null, primary key # user_id :integer not null # project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # project_access :integer default(0), not null # notification_level :integer default(3), not null # diff --git a/spec/models/web_hook_spec.rb b/spec/models/web_hook_spec.rb index d603408..20ee141 100644 --- a/spec/models/web_hook_spec.rb +++ b/spec/models/web_hook_spec.rb @@ -5,13 +5,14 @@ # id :integer not null, primary key # url :string(255) # project_id :integer -# created_at :datetime not null -# updated_at :datetime not null +# created_at :datetime +# updated_at :datetime # type :string(255) default("ProjectHook") # service_id :integer # push_events :boolean default(TRUE), not null # issues_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null +# tag_push_events :boolean default(FALSE) # require 'spec_helper' -- libgit2 0.21.2