Annotate web_hooks table
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
5f9cdbab1d
commit
d4c50dbd33
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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"
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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"
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
#
|
#
|
||||||
# Table name: web_hooks
|
# Table name: web_hooks
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# 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 New Issue