diff --git a/app/models/broadcast_message.rb b/app/models/broadcast_message.rb index bebe0da9c61efe5d46b40391579e671ce9d1b93e..85ab7ed6ae8a43a1ebcc41872d90bf6984adabbd 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 47aeb93a419510ca1d7a1c2704a30c8378609fff..570f5e91c13c45e3e14c97a48e553db7693d4f1d 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 6f109e483147a9d9a49fec89407c11b7cd425373..739d749830a4da61fe714eb6a620a5236556d2ef 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 b92c18410632b4d7a4d5ea777b37e976858ad8dc..9068c2b87b632fd2645a20e315fa3fcb504ef748 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 5c156856d7947a9a0928533fbede4b34fdcac132..cf88e9f4afcae8752e3a3335d00f0efc55e2f26d 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 aaa527a11459e22e8db6ec3f91f244b697151c4d..17add270f679a03b13554e30956ff8b6e336d72d 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 0d4d5f4e836f2055536cbeb80741be031f30c47c..3cbf30a20df25528d27ec6329138f8fd9f567c0c 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 2104032774112da80fbe6207834380c46d1520ac..16d51345e5a164427c2079fcad2528c780dd5cd8 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 4202d79a9562b153a3e165c90be2112f5dc12b93..035c9efa016919ba8cc9cd26ac95acb1be1364fd 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 1ec76dbd39ad0efa8f2998ab4220d36dfebfcb00..8c885b70a4853335843bd578966e02b6d61bc784 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 99afffc1db032c7338631e8f09cbc05b8a76e4d0..0684461add7ee1809e84dab6057f1dc78a76f3eb 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 e16529a634c3fed7a75abc6b42d2f6265a7bfc7c..6a2ca767030816de4c0a2dad8dc31d67e1ef6077 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 468c93bd4264decf6bfc7803f8dc891604cc4569..7973eef7e1cdcb35656ef199d077a68e720ea687 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 d666d5d52c807d958011d9037f2a80ecd5b756b0..6f7afcd1f9f7fe1f5cd47d2432b1a87a3321da23 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 ef2000ad05ecbf992f3d217add36506b386ef010..a3c0d201ee578b2a47ad737986af3dc3be2575dc 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 09642ffa22f0fa78e5dd38f07e46a65943f52089..e2e1ea88d46dbce51a01768b017263a86d81fdc1 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 4e9b22532cb3f684cd05afe088d11f9bec9a6676..6db6767a88dec485668af96ba349d1f02aed875b 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 2a2c51729168d816cec4329099fe308ac78cc028..06e9d6118d28dc8063981eeffb3cbf97794b3721 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 f9247e054c7dfeb75fc22de417d055214c3cfb7e..19030ecffa29719b845ea0606446059c0ff1cf4f 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 0a4531663425ff20a844174afa53f4f07ad2d62f..04775c4f2b2965701cd0ac712e2814064fee3d7b 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 2603a1f67a47b461bac2b56f384587480b121ee5..6cdd04a86482d61d8df63f581ab68b051923931a 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 0b8e7bad353bd7af148a5656e7d7477719ace424..b363d7f57d2cfccf759173206f8582a1f784bcd1 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 81ac47c913d6d4cda4e58ac5d621643335935505..ed1944f337323262abfc220e01b0d87aa36fb65d 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 3cee047a32a44b435f9bbb49d26edd382f10802a..d62f61856d190b74b318bc2847cfe8aaf2fceecb 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 877b9a77404668d5afad164f4ac399c23b385b27..aa2bcc5def7289de094889154ff92e475f643247 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 a3697b313524be3f00e9a5646f7b9e2015ccc7b8..50fd62def1dfbcda1ba8373187503e42acf78fe0 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 f38aa07059cb369621d4a998699d7a227a3d6cbf..14c8804642363e7481891ba45d24cbd4ab484b8e 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 16379720e59bb04e89237b3431e24812d05bc56f..d2b2b1218d1bc8e17ec56e16fc7d4ece88426852 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 f7e440dcc811dd11550687bcbf202bcdb49360af..ea000395218ddfcba118f4c8cfc61c0f359d9b22 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 6f22a863d988b72dfd64d89e749c613f7f018d31..2e11239c40b5c688197908d8b9c6333cc442090a 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 c1c9ba257f25baed63aa087c4cf07b1d40f07f2c..720accd73dc512ef526a5535adfc7f4a7cc452c6 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 bffcbbf00f49acbe554eadf34d81c9593947b194..ee32b49bc66ef182d056229d4bf497b3699e0744 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 c25dcb074a1b359eeb7c6e7734e0121cbe61f20d..16961e5413ba5ff8c2b355051f2261e72eeb3b35 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 181bf3222832b98d26f84938d95b335fa9c1e8bd..5f8b832d51e1f151327447b685d2c168097d2fd6 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 6f147859a5cf538184b7dba91e7cc31944073136..e8810f56defbe9ec3989cc20a4c75181b9f12543 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 45a795391a2ea17711d67754ae1ef65f943e10f3..76854da5c383310dc0f14c53227d09206cbbbb3a 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 6339d5c4003d0319ef5e87ddd1def9d3dfcb65b4..ea0039d39e67e1d4cf53c213a417a88869a03f27 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 2f9b91acf2c7ea2671086cbe4243d2cce558277d..906e4106b320750b1c7d9be608bf4b6fd72be0b1 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 34bc0c5146803fb161d0a6240592825e25b4874a..49c3a367e16f7214fbe5b098d611bd0f7d0119a3 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 1730a64283a8b6ea77fba3b0adf6bbf2b6896b3a..8b964bccc0ba364487f8e4ebb1bedbe22a1cfe50 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 cf0b36a28306876065ffba1358828f6d88d61812..0f31c407c90d3b2a7d6d82846c426a12e79a34e6 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 b76ca6604113a0aa7689845dc0bf05ea66799420..adbbbac875fa5199a4fbf76e2a8640f578c008e7 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 aeec1713558ee2d192ae744c3b87f5832b955dfd..3e0e25ee39aff4d4804ce8db4da89c61959aa8e4 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 53ede0d5ee91424bac8eaa1af74d75505f3d333f..f415e750dd578807e26635920ec39b573a61597f 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 9741458533152199db070a98815b6c0c2654ef23..25ad133e122495731cbaa493634951ca9008a447 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 e719e3bfcc831d3e5c9342157e5a23fab2b3d3a6..1845c6103f5a4efc33dda69224995ba379d0a49b 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 dfc99849d60635f8167d48f27781ea1258ad9530..efdf0dc891b649ad6c976ae8ed248090f54c15e9 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 8ec15cb3466062bd29afab3c79e679e0db550f5a..a0708f14236179b7541dadf0fb38fea3e1b4b1f2 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 686e43d8d1037a34392f881c17bad3698d41a8c8..8259ed88d83c64bb3c8ece2fb5df824620e9e7b7 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 75155d5dc1d3a7c021a7f91668fe4117a59de0be..d53c4037c35728802c594620b06a11b654b3389f 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 c1c6c2f31b72b3cc6595150f2797f72189178fd0..474067fe38ad60719106e26dbdd095b89a31b150 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 f1ad679b6586f3c939f9dd2db12eae10e01a2c18..a10673fda9c0825820e992dcefaebbde595fbb7f 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 b41012a3b8cf4937347d40f6d2823f947ed663f5..8309ad3a7248414445cb961da52620c9142e7ebd 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 c38554e2f77ebfd50cdebf1841599973436db640..d2bf96979f9f9a446da1e10aecb2a12f0a7eaa56 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 4cdda1feb31a9533d0b9d8d2f4151cb83811788e..43779e6bbfccf3b6b2d9d3df3ad06e8e6f01f1ec 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 7bd7c431bcd8d206839ba6f5d666bf5ec8b78a4e..4e0d50d7f3f6ec1d273b807235ae605d6c2013c4 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 d3a46ebbb84431c54fd877378d0956494ca1de88..42147179387a8281b1eaa42171da134cd7e28882 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 b84202352fcf10dc0f38eff5cde89510a19e4fd6..b42d7bfe606805c40a9bc7559028b253cb0bb0a5 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 6e830393e32e632fb4d57a10ab1824331c58c718..35b929c2f3ed3b90893ca2b285c830c63fb271b8 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 40a5fbc71d952bc8eb3b4bc6a5f5e57c16b4c8cc..6ec82438dfe6bae49bb759df5c936a9fa899cf7a 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 94542074967b1f0e220b4170076e309f5bbc9c61..a4bed81c0f66bdcccfd03941899396cbbb1849fc 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 387455cb25e01825012187c577fd372328515b7f..b00eb30569b2aeb3223a7181e782f3d0b4057eff 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 5fa397207c7e56d80369a139b2d1ebc0dc098f0b..a77c594aaf158aa625cb8479f239ae18cd320c25 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 6a0d99dcc53f1cec8726eeb20b19474c4900c3f8..73144397301be83865ca3e3f07cca8ef7f18215e 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 fef6314f23abab1ee2770ba3b75026d57be47c6c..34a5bcfb4a5dd96214abc8078d488623f471dbe8 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 9264f2bc034f931ae9af47b1b46b39ca43dd51f8..acecae0714672f91ea16c97ca152eb9913e604b4 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 e289a592b0362ca9c3bfb11cedf3d015e2c40d8a..aa4b8cb449bb5442b42e48751227b785d02dc36b 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 d603408101879ddbb237fb688196f331b18136f7..20ee1416125a23d277becf6af286c6f697a0456e 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'