Annotate web_hooks table
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
5f9cdbab1d
commit
d4c50dbd33
7 changed files with 70 additions and 49 deletions
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
class ProjectHook < WebHook
|
class ProjectHook < WebHook
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
class ServiceHook < WebHook
|
class ServiceHook < WebHook
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
class SystemHook < WebHook
|
class SystemHook < WebHook
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
class WebHook < ActiveRecord::Base
|
class WebHook < ActiveRecord::Base
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
require "spec_helper"
|
require "spec_helper"
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
require "spec_helper"
|
require "spec_helper"
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
Loading…
Reference in a new issue