Refactoring of hook functionality & bootsrap system hooks
This commit is contained in:
parent
72a571724d
commit
65dc68b35c
9 changed files with 24 additions and 14 deletions
5
db/migrate/20120712080407_add_type_to_web_hook.rb
Normal file
5
db/migrate/20120712080407_add_type_to_web_hook.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddTypeToWebHook < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :web_hooks, :type, :string, :default => "ProjectHook"
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120706065612) do
|
||||
ActiveRecord::Schema.define(:version => 20120712080407) do
|
||||
|
||||
create_table "events", :force => true do |t|
|
||||
t.string "target_type"
|
||||
|
@ -187,8 +187,9 @@ ActiveRecord::Schema.define(:version => 20120706065612) do
|
|||
create_table "web_hooks", :force => true do |t|
|
||||
t.string "url"
|
||||
t.integer "project_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.string "type", :default => "ProjectHook"
|
||||
end
|
||||
|
||||
create_table "wikis", :force => true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue