diff --git a/app/models/gitlab_ci_service.rb b/app/models/gitlab_ci_service.rb index 020dc868841abaa0db67b76b43f9480ba7d98300..0bce425fdab78c7a6fdd2e4518f673c7286eee0c 100644 --- a/app/models/gitlab_ci_service.rb +++ b/app/models/gitlab_ci_service.rb @@ -2,13 +2,15 @@ # # Table name: services # -# id :integer not null, primary key -# type :string(255) -# title :string(255) -# token :string(255) -# project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# id :integer not null, primary key +# type :string(255) +# title :string(255) +# token :string(255) +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# active :boolean default(FALSE), not null +# project_url :string(255) # class GitlabCiService < Service diff --git a/app/models/project_hook.rb b/app/models/project_hook.rb index aebf2054f8e74efe3728f8a96c1a36270d1c94ee..2576fc979d4b8f6798d92358c19d35315cd30396 100644 --- a/app/models/project_hook.rb +++ b/app/models/project_hook.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # class ProjectHook < WebHook diff --git a/app/models/service.rb b/app/models/service.rb index 70e29701240fbc83dd7399d7aa269d827d3d54c0..17a7a656de592bdd20321305c9c22959ddcd4497 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -2,13 +2,15 @@ # # Table name: services # -# id :integer not null, primary key -# type :string(255) -# title :string(255) -# token :string(255) -# project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# id :integer not null, primary key +# type :string(255) +# title :string(255) +# token :string(255) +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# active :boolean default(FALSE), not null +# project_url :string(255) # class Service < ActiveRecord::Base diff --git a/app/models/service_hook.rb b/app/models/service_hook.rb index aedd0eef271e6f1d69a02f78b2a0e3eb48e7f842..4cd2b272eece51050c3392b321b1f32900bd50b3 100644 --- a/app/models/service_hook.rb +++ b/app/models/service_hook.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # class ServiceHook < WebHook diff --git a/app/models/system_hook.rb b/app/models/system_hook.rb index 3bc9089fdc85aedb2c4cb58094ab99c73e70b406..2ae5b1314e9ed3e601f6798b6caa200cec869078 100644 --- a/app/models/system_hook.rb +++ b/app/models/system_hook.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # class SystemHook < WebHook diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index ac3e10cf96f273a39728fe2089115211f2df2e37..df58fa93b7e4d5c1a9f724f8ed7d30ff9184ddd1 100644 --- a/app/models/web_hook.rb +++ b/app/models/web_hook.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # class WebHook < ActiveRecord::Base diff --git a/spec/models/service_hook_spec.rb b/spec/models/service_hook_spec.rb index 25fc409646df32fea1c71635481300d573492851..0b0262c97f1811dba2b5d4009d3c6ca2a6031b2a 100644 --- a/spec/models/service_hook_spec.rb +++ b/spec/models/service_hook_spec.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # require "spec_helper" diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 0329b9a94e36e3e1880e95349e1f9d58bd802f47..1a58f680baf5c1dfdb34c40253b8caa20dec988e 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -2,13 +2,15 @@ # # Table name: services # -# id :integer not null, primary key -# type :string(255) -# title :string(255) -# token :string(255) -# project_id :integer not null -# created_at :datetime not null -# updated_at :datetime not null +# id :integer not null, primary key +# type :string(255) +# title :string(255) +# token :string(255) +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# active :boolean default(FALSE), not null +# project_url :string(255) # require 'spec_helper' diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb index a99e91d34d0087730743aec4791d5b9124a02a59..9d03b56cd8f563e1f0fb04dd0a508f6349399e3c 100644 --- a/spec/models/system_hook_spec.rb +++ b/spec/models/system_hook_spec.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # require "spec_helper" diff --git a/spec/models/web_hook_spec.rb b/spec/models/web_hook_spec.rb index aa040b5064fa6b89b0917c321095dbfa6c1d91e4..2d9301732dd9550ef98177dda05b6f86f3f75729 100644 --- a/spec/models/web_hook_spec.rb +++ b/spec/models/web_hook_spec.rb @@ -8,6 +8,7 @@ # created_at :datetime not null # updated_at :datetime not null # type :string(255) default("ProjectHook") +# service_id :integer # require 'spec_helper'